Improve hack_libtool utility to workaround problems on some Linux configurations
This commit is contained in:
parent
276238d114
commit
00217d4eb2
@ -413,15 +413,10 @@ echo
|
|||||||
# chmod +x ./bin/salome/*;
|
# chmod +x ./bin/salome/*;
|
||||||
#])
|
#])
|
||||||
|
|
||||||
|
AC_HACK_LIBTOOL
|
||||||
AC_CONFIG_COMMANDS([hack_libtool],[
|
AC_CONFIG_COMMANDS([hack_libtool],[
|
||||||
sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
|
sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
|
||||||
if test \"\$(echo \$[@] | grep -E '\\\-L/usr/lib(/../lib)?(64)? ')\" == \"\" \n\
|
$(pwd)/hack_libtool \1 \"\$[@]\" \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\
|
|
||||||
}\n\
|
}\n\
|
||||||
CC=\"hack_libtool\"%g" libtool
|
CC=\"hack_libtool\"%g" libtool
|
||||||
],[])
|
],[])
|
||||||
|
Loading…
Reference in New Issue
Block a user