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

index 49f45cca4248e36a0613a31f15f220936178120e..b5161cf1ee257072aae83a93c0030b305aa45db5 100644 (file)
@@ -395,15 +395,10 @@ AC_OUTPUT_COMMANDS([ \
       chmod +x ./bin/*; \
 ])
 
+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
 ],[])