From c41d62c8e5943cd4a129bce3b0b944cbc02c2d7b Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 15 Jan 2003 10:57:52 -0500 Subject: [svn-r6285] Purpose: a patch Description: When intel compilers (icc, ecc) are used in a linux system, the libtool generated has a wrong setting of '$wl" for linking. Put in a "ed ..." command script to edit the generated libtool with the proper setting. The libtool people has fixed this problem. This can ben taken out when that version of libtool is released. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)}? YES. Other platforms/configurations tested? platinum and titan using gcc and intel CC. Misc. update: Update MANIFEST if you add or remove any file. Update release_docs/RELEASE for bug fixes, new features, etc. Update applicable document files too. --- configure | 14 ++++++++++++++ configure.in | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/configure b/configure index 7522b0a..0b1b659 100755 --- a/configure +++ b/configure @@ -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 < /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 < /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 -- cgit v0.12