From 2ff83cf94527626fcc3cfdfaf3af9a57d5c3af76 Mon Sep 17 00:00:00 2001
From: Scott Mindock <srmindock@wisc.edu>
Date: Tue, 16 Apr 2024 12:57:32 +0000
Subject: [PATCH] where

---
 distro/scripts/adl_cots.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/distro/scripts/adl_cots.sh b/distro/scripts/adl_cots.sh
index 3cffacc..9157e2f 100755
--- a/distro/scripts/adl_cots.sh
+++ b/distro/scripts/adl_cots.sh
@@ -474,6 +474,7 @@ nagg(){
     cd hdf5_HL_REGION*  && \
     export HDF5_INSTALL_DIR=${USER_COTS_PATH}  && \
     export LDFLAGS=" -static -L${USER_COTS_PATH}/lib "  && \
+ 
     ls ${USER_COTS_PATH}/lib
     make
     make install
@@ -484,17 +485,18 @@ nagg(){
     echo "ls ${USER_COTS_PATH}/lib"
     ls ${USER_COTS_PATH}/lib
     echo  "ls ${USER_COTS_PATH}/lib"
-      ls ${USER_COTS_PATH}/include
+    ls ${USER_COTS_PATH}/include
     cd nagg-1.6.2  && \
     patch -p1 <  ${COTS_HOME}/scripts/revised_nagg.patch   && \
-    export CFLAGS=" -I${USER_COTS_PATH}/include "${CFLAGS}
+    export CPPFLAGS=" -I${USER_COTS_PATH}/include "${CPPFLAGS}
+    export LIBS="-L${USER_COTS_PATH}/lib -lhdf5"
     ./configure --help
     ./configure  --prefix=${USER_COTS_PATH}   --exec-prefix=${USER_COTS_PATH} --with-hlregion=${USER_COTS_PATH}/lib   && \
     make   && \
     make install   && \
-     ls ${USER_COTS_PATH}/bin
+    ls ${USER_COTS_PATH}/bin
     #cp nagg/bin/nagg ${USER_COTS_PATH}/bin   && \
-    unset LDFLAGS   && \ 
+    unset LDFLAGS   && \
     echo "${FUNCNAME[0]} finished" && \
     return 0
 }
-- 
GitLab