]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Add environment variable to force old implementation of threads usage on Red Hat 9
authorvsr <vsr@opencascade.com>
Tue, 21 Jun 2005 07:09:01 +0000 (07:09 +0000)
committervsr <vsr@opencascade.com>
Tue, 21 Jun 2005 07:09:01 +0000 (07:09 +0000)
config_files/common.sh

index 2bca801a55978ef7a16cca529883e62da31ab092..917e4840b8033b18b658c367f272756d81aabc01 100755 (executable)
@@ -97,6 +97,17 @@ export INSTALL_ROOT=${install_root}
 export ENV_FOR_LAUNCH=1
 
 EOF
+### !!! The next is for RedHat 9 only !!! 
+if [ -f /etc/redhat-release ] ; then
+  grep -e "Red Hat Linux release 9" /etc/redhat-release > /dev/null
+  if [ $? -eq 0 ] ; then
+    cat >> ${install_work}/$SHRC <<EOF
+#${DELIM} Force RH9 to use old implementation of threads ${DELIM}
+export LD_ASSUME_KERNEL=2.4.18
+
+EOF
+  fi
+fi
 ### !!! writing salome.csh file !!! -> set inital variables
 pre_vars="PATH LD_LIBRARY_PATH LD_RUN_PATH PYTHONPATH TCLLIBPATH"
 for i in $pre_vars ; do