diff --git a/distro/scripts/adl_cots.sh b/distro/scripts/adl_cots.sh index 8ecdbb16c0d79771d4813457aa15ed80335d6bb1..3d19994953b082d69264c05676076a4b2de82aee 100755 --- a/distro/scripts/adl_cots.sh +++ b/distro/scripts/adl_cots.sh @@ -66,6 +66,7 @@ export LD_LIBRARY_PATH=${USER_COTS_PATH}/lib64:${USER_COTS_PATH}/lib:${LD_LIBRAR export LD_RUN_PATH=${USER_COTS_PATH}/lib64:${USER_COTS_PATH}/lib:${LD_RUN_PATH} export PATH=${USER_COTS_PATH}/bin:$PATH export LDFLAGS="-L${USER_COTS_PATH}/lib -L${USER_COTS_PATH}/lib64 " + install_the_source (){ echo ${FUNCNAME[0]} # This will download and unpack the requested COT. If the cot is already present it will not be downloaded. @@ -470,6 +471,7 @@ mk_hl_region() tar_name=hdf5_HL_REGION-1.1.5.tar.gz && \ install_the_source $tar_name && \ cd ${BUILD}/hdf5_HL* && \ + export CCFLAGS="${CFLAGS} ${LDFLAGS}" export HDF5_INSTALL_DIR=${USER_COTS_PATH} && \ linc=`pwd` && \ make clean && \ @@ -486,7 +488,7 @@ mk_nagg(){ install_the_source ${tar_name} && \ cd nagg-1.6.2 && \ patch -p1 < ${COTS_HOME}/scripts/revised_nagg.patch && \ - ./configure --prefix=${USER_COTS_PATH} --exec-prefix="${USER_COTS_PATH}" --with-hlregion="${USER_COTS_PATH}/lib" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" && \ + ./configure --prefix=${USER_COTS_PATH} --exec-prefix="${USER_COTS_PATH}" --with-hlregion="${USER_COTS_PATH}/lib" CFLAGS="${CFLAGS} -I${USER_COTS_PATH}/include " CPPFLAGS="${CPPFLAGS} -I${USER_COTS_PATH}/include " LDFLAGS="${LDFLAGS}" && \ make && \ make install && \ echo "${FUNCNAME[0]} finished" && \