Skip to content
Snippets Groups Projects
Commit eed11ab4 authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

healpix building uses lib64 as an rpath to avoid linking errors

parent 17fcdd0b
No related branches found
No related tags found
1 merge request!46Build process for multiple compilers across different machines
......@@ -169,13 +169,19 @@ function install_healpix {
HEALPIX_ROOT=$REPO_PATH/src/cxx
HEALPIX_BUILD_DIR=$HEALPIX_ROOT/build
ld_flags="-L$INSTALL_DIR/lib"
if [ -d "$INSTALL_DIR/lib64" ]; then
echo "appending lib64 folder to ldflags"
ld_flags="$ld_flags -L$INSTALL_DIR/lib64 -Wl,-rpath,$INSTALL_DIR/lib64"
fi
cd "$HEALPIX_ROOT"
autoreconf -ifv
mkdir -p "$HEALPIX_BUILD_DIR"
cd "$HEALPIX_BUILD_DIR"
INCLUDE_FLAGS="-I$INSTALL_DIR/include"
invoke_build_script_generation $HEALPIX_ROOT/configure --prefix=$INSTALL_DIR CFLAGS="$INCLUDE_FLAGS" CXXFLAGS="$INCLUDE_FLAGS" LDFLAGS="-L$INSTALL_DIR/lib -L$INSTALL_DIR/lib64"
invoke_build_script_generation $HEALPIX_ROOT/configure --prefix=$INSTALL_DIR CFLAGS="$INCLUDE_FLAGS" CXXFLAGS="$INCLUDE_FLAGS" LDFLAGS="$ld_flags"
make -j "$THREADS"
make install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment