]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #24217 Validation SALOME 9.7.0 - medfile embed libgfortran.so.5 if devtoolset...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 23 Apr 2021 14:03:26 +0000 (16:03 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 23 Apr 2021 14:03:26 +0000 (16:03 +0200)
products/compil_scripts/med.sh

index 04813540ebb6884eb939e694a8ebe80218d9f3c5..b5d7f638b3ba455a9b938c96e74e291ab01dac65 100755 (executable)
@@ -66,6 +66,25 @@ then
     exit 3
 fi
 
+# post-build action in case devtoolset-8 is used
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+case $LINUX_DISTRIBUTION in
+    CO7)
+       if [ -n "$X_SCLS" ]
+       then
+           X_SCLSVALUE=$(echo $X_SCLS)
+           if [ $X_SCLSVALUE == "devtoolset-8" ]; then
+               echo "WARNING: devtoolset-8 is installed on ${LINUX_DISTRIBUTION} - libgfortran will be embedded..."
+               cp -RP /usr/lib64/libgfortran.so.5* $PRODUCT_INSTALL/lib/
+           fi
+       else
+           echo "INFO: X_SCLS does not seem to be set. skipping..."
+       fi
+       ;;
+    *)
+        ;;
+esac
+
 echo
 echo "########## END"