]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Improve hack_libtool utility to workaround problems on some Linux configurations
authorvsr <vsr@opencascade.com>
Mon, 6 Dec 2010 13:06:25 +0000 (13:06 +0000)
committervsr <vsr@opencascade.com>
Mon, 6 Dec 2010 13:06:25 +0000 (13:06 +0000)
configure.ac

index 1d8dae64591abcf3c46184a056ce0b608506472b..bd170516077ac3deb0f2c6ca85abf07e1cdba60c 100644 (file)
@@ -438,15 +438,10 @@ echo
 #  chmod +x ./bin/salome/*; \
 #])
 
+AC_HACK_LIBTOOL
 AC_CONFIG_COMMANDS([hack_libtool],[
 sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
-  if test \"\$(echo \$[@] | grep -E '\\\-L/usr/lib(/../lib)?(64)? ')\" == \"\" \n\
-  then\n\
-    cmd=\"\1 \$[@]\"\n\
-  else\n\
-    cmd=\"\1 \"\`echo \$[@] | sed -r -e 's|(.*)-L/usr/lib(/../lib)?(64)? (.*)|\\\1\\\4 -L/usr/lib\\\3|g'\`\n\
-  fi\n\
-  \$cmd\n\
+  $(pwd)/hack_libtool \1 \"\$[@]\" \n\
 }\n\
 CC=\"hack_libtool\"%g" libtool
 ],[])