Skip to content

Commit

Permalink
Fix #629 -- previous fix failed on Lubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Mar 18, 2019
1 parent 69808bd commit d732567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prerequisites/install-functions/report_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ report_results()
if [[ -d "${compiler_install_root%/}/lib" || -d "${compiler_install_root%/}/lib64" ]]; then
echo "# Prepend the compiler library paths to the ${LD_LIB_P_VAR} environment variable:" | tee -a setup.sh setup.csh
compiler_lib_paths="${compiler_install_root%/}/lib64/:${compiler_install_root%/}/lib"
echo "if [[ -z \"\${!${LD_LIB_P_VAR}}\" ]]; then " >> setup.sh
echo "if [[ -z \"\${${LD_LIB_P_VAR}}\" ]]; then " >> setup.sh
echo " export ${LD_LIB_P_VAR}=\"${compiler_lib_paths%/}\" " >> setup.sh
echo "else " >> setup.sh
echo " export ${LD_LIB_P_VAR}=\"${compiler_lib_paths%/}:\${!${LD_LIB_P_VAR}}\" " >> setup.sh
echo " export ${LD_LIB_P_VAR}=\"${compiler_lib_paths%/}:\${${LD_LIB_P_VAR}}\" " >> setup.sh
echo "fi " >> setup.sh
echo "setenv LD_LIBRARY_PATH \"${compiler_lib_paths%/}:\${LD_LIBRARY_PATH}\" " >> setup.csh
fi
Expand Down

0 comments on commit d732567

Please sign in to comment.