Skip to content
Snippets Groups Projects
Commit 1ce35285 authored by Scott Mindock's avatar Scott Mindock
Browse files

where

parent b683299a
No related branches found
No related tags found
No related merge requests found
Pipeline #51042 passed with warnings
...@@ -65,7 +65,7 @@ echo "PATH" $PATH ...@@ -65,7 +65,7 @@ echo "PATH" $PATH
export LD_LIBRARY_PATH=${USER_COTS_PATH}/lib64:${USER_COTS_PATH}/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${USER_COTS_PATH}/lib64:${USER_COTS_PATH}/lib:${LD_LIBRARY_PATH}
export LD_RUN_PATH=${USER_COTS_PATH}/lib64:${USER_COTS_PATH}/lib:${LD_RUN_PATH} export LD_RUN_PATH=${USER_COTS_PATH}/lib64:${USER_COTS_PATH}/lib:${LD_RUN_PATH}
export PATH=${USER_COTS_PATH}/bin:$PATH export PATH=${USER_COTS_PATH}/bin:$PATH
export LDFLAGS="-L${USER_COTS_PATH}/lib "
install_the_source (){ install_the_source (){
echo ${FUNCNAME[0]} echo ${FUNCNAME[0]}
# This will download and unpack the requested COT. If the cot is already present it will not be downloaded. # This will download and unpack the requested COT. If the cot is already present it will not be downloaded.
...@@ -473,7 +473,7 @@ mk_hl_region() ...@@ -473,7 +473,7 @@ mk_hl_region()
export HDF5_INSTALL_DIR=${USER_COTS_PATH} && \ export HDF5_INSTALL_DIR=${USER_COTS_PATH} && \
linc=`pwd` && \ linc=`pwd` && \
make clean && \ make clean && \
make CC=$CC INCLUDES="$CPPFLAGS -I${USER_COTS_PATH}/include -I$linc/src $LDFLAGS -lhdf5 -lhdf5_hl -lm" && \ make CC=$CC INCLUDES="$CPPFLAGS -I${USER_COTS_PATH}/include -I$linc/src $LDFLAGS -lhdf5 -lhdf5_hl -lm" && \
make PREFIX=${USER_COTS_PATH} install && \ make PREFIX=${USER_COTS_PATH} install && \
echo "${FUNCNAME[0]} finished" && \ echo "${FUNCNAME[0]} finished" && \
return 0 return 0
...@@ -552,19 +552,20 @@ _rpath_setter() { ...@@ -552,19 +552,20 @@ _rpath_setter() {
DESIRED_RPATH=$1 DESIRED_RPATH=$1
ORIGIN_DIRECTORY=$2 ORIGIN_DIRECTORY=$2
cd "${ORIGIN_DIRECTORY}" cd $ORIGIN_DIRECTORY
#EXES=$(ls *) #EXES=$(ls *)
EXES=$(find "${ORIGIN_DIRECTORY}" -type f -perm -700) EXES=$(find "${ORIGIN_DIRECTORY}" -type f -perm -700)
printf "Desired %s\n" $DESIRED_RPATH printf "Desired %s\n" '$DESIRED_RPATH'
for exe in ${EXES}; do for exe in ${EXES}; do
printf "Start for %s\n" $exe if [ -e "$exe" ]; then
#patchelf --remove-rpath $exe #printf "Start for %s\n" $exe
patchelf --set-rpath ${DESIRED_RPATH} ${exe} patchelf --set-rpath $DESIRED_RPATH $exe
patchelf --shrink-rpath ${exe} patchelf --shrink-rpath $exe
printf "Final for %s\n" ${exe} printf "Set rpath for %s\n" $exe
patchelf --print-rpath ${exe} #patchelf --print-rpath $exe
ldd ${exe} #ldd $exe
fi
done done
} }
export ADL_HOME=${COTSBASE}/libexec/ADL export ADL_HOME=${COTSBASE}/libexec/ADL
......
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