]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
PAL14048: Fix linking problem on Mandriva 64-bit?
authorvsr <vsr@opencascade.com>
Tue, 9 Jan 2007 14:01:47 +0000 (14:01 +0000)
committervsr <vsr@opencascade.com>
Tue, 9 Jan 2007 14:01:47 +0000 (14:01 +0000)
config_files/common.sh

index 51ae39af723f553b2b5cd0da9866772d9da6d997..9a89b4d15c23c958759638eae44e6582e522fd39 100755 (executable)
@@ -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