From: vsr Date: Tue, 9 Jan 2007 14:01:47 +0000 (+0000) Subject: PAL14048: Fix linking problem on Mandriva 64-bit? X-Git-Tag: V_3_2_4~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df1e18fba8c678fafa243cd59163584b50f477b3;p=tools%2Finstall.git PAL14048: Fix linking problem on Mandriva 64-bit? --- diff --git a/config_files/common.sh b/config_files/common.sh index 51ae39a..9a89b4d 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -125,6 +125,15 @@ done ### Note, that for performance reasons temporary environment files used during installation procedure itself ### are created without using setenv(a|p) aliases. +# 0. add /usr/lib or /usr/lib64 dir to the LD_LIBRARY_PATH +if test `uname -m` = "x86_64" ; then +echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> ${install_work}/$SHRC 2>/dev/null +echo '' >> ${install_work}/$SHRC 2>/dev/null +else +echo 'export LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}' >> ${install_work}/$SHRC 2>/dev/null +echo '' >> ${install_work}/$SHRC 2>/dev/null +fi + # 1. first dump all environment files into the $SHRC file product_sequence="$2" for i in $product_sequence ; do @@ -307,7 +316,7 @@ sed -e 's%export\([[:blank:]]*\)LD_RUN_PATH=\$[{]\?LD_RUN_PATH[}]\?:\(.*\)%expor # Setting "/usr/X11R6/lib" path in LD_LIBRARY_PATH for the libGL.so.1 file if test `uname -m` = "x86_64" ; then echo '# Setting /usr/X11R6/lib64 path in LD_LIBRARY_PATH for the libGL.so.1 file' >> ${INSTALL_WORK}/_tmp2 -echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib64:/usr/lib64:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2 +echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib64:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2 else echo '# Setting /usr/X11R6/lib path in LD_LIBRARY_PATH for the libGL.so.1 file' >> ${INSTALL_WORK}/_tmp2 echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2