From: Nabil Ghodbane Date: Fri, 23 Apr 2021 14:03:26 +0000 (+0200) Subject: spns #24217 Validation SALOME 9.7.0 - medfile embed libgfortran.so.5 if devtoolset... X-Git-Tag: V9_7_0~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f2654bdf78a53048d5a5ea2a643feafe0f864de4;p=tools%2Fsat_salome.git spns #24217 Validation SALOME 9.7.0 - medfile embed libgfortran.so.5 if devtoolset-8 and CentOS 7 - relies on X_SCLS environment variable --- diff --git a/products/compil_scripts/med.sh b/products/compil_scripts/med.sh index 0481354..b5d7f63 100755 --- a/products/compil_scripts/med.sh +++ b/products/compil_scripts/med.sh @@ -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"