diff options
-rwxr-xr-x | configure | 14 | ||||
-rw-r--r-- | configure.in | 15 |
2 files changed, 29 insertions, 0 deletions
@@ -7282,6 +7282,20 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool' +case $host_os in + linux*) + # If an Intel compiler is used, it needs to set $wl to use "-Wl," + if $CC -V 2>&1 | grep '^Intel(R)' > /dev/null ; then + echo 'fix $wl in' $ofile +ed - $ofile <<EOF 2> /dev/null +/^wl=""/s//wl="-Wl,"/ +w +q +EOF + fi + ;; +esac + case "$INSTALL" in *install-sh*) INSTALL='\${top_srcdir}/bin/install-sh -c' diff --git a/configure.in b/configure.in index 0f3130d..aeaaa39 100644 --- a/configure.in +++ b/configure.in @@ -278,6 +278,21 @@ AC_PROG_INSTALL AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL +dnl Post processing to patch up some deficiencies in libtool +case $host_os in + linux*) + # If an Intel compiler is used, it needs to set $wl to use "-Wl," + if $CC -V 2>&1 | grep '^Intel(R)' > /dev/null ; then + echo 'fix $wl in' $ofile +ed - $ofile <<EOF 2> /dev/null +/^wl=""/s//wl="-Wl,"/ +w +q +EOF + fi + ;; +esac + dnl Fix up the INSTALL macro if it's a relative path. We want the dnl full-path to the binary instead. case "$INSTALL" in |