]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Newer Intel compilers do not grok -KPIC any more.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 19 Jun 2008 17:35:52 +0000 (19:35 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 19 Jun 2008 17:35:52 +0000 (19:35 +0200)
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] <icc, icpc>:
Use -fPIC, newer Intel compilers (icc 10, ifort 9) reject -KPIC.
* tests/localization.at: Skip test if the compiler fails merely
due to the locale setting.
* THANKS: Update.
Report by Vincent Lefevre.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
libltdl/m4/libtool.m4
tests/localization.at

index 826d92a8a27d6bc420fbb6fc2cf983d04de0b1e3..4d003e655c0abec4ad96b29d8886727d72d49d51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] <icc, icpc>:
+       Use -fPIC, newer Intel compilers (icc 10, ifort 9) reject -KPIC.
+       * tests/localization.at: Skip test if the compiler fails merely
+       due to the locale setting.
+       * THANKS: Update.
+       Report by Vincent Lefevre.
+
 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/libtool.texi (Linking executables, Static libraries)
diff --git a/THANKS b/THANKS
index c6726c6b1243a1c02703039f9c41024412656606..602376db8ff95382e76c79d9495d08abddfd8f9b 100644 (file)
--- a/THANKS
+++ b/THANKS
   Tom Tromey                   tromey@cygnus.com
   Tor Lillqvist                        tml@iki.fi
   Ulrich Drepper               drepper@ipd.info.uni-karlsruhe.de
+  Vincent Lefevre              vincent@vinc17.org
   Xavier Pianet                        xavier@xingo.com
   Юрий Андреевич Пухальский     pooh@cryptopro.ru
 
index 103269d7e3f75ab11e745bbca5bda595fc956580..04d95a33c236655d1fb5ade18bc23dd36f929cd9 100644 (file)
@@ -3697,12 +3697,19 @@ m4_if([$1], [CXX], [
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
            ;;
-         icpc* | ecpc* )
-           # Intel C++
+         ecpc* )
+           # old Intel C++ for x86_64 which still supported -KPIC.
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
            ;;
+         icpc* )
+           # Intel C++, used to be incompatible with GCC.
+           # ICC 10 doesn't accept -KPIC any more.
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+           ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -3968,12 +3975,15 @@ m4_if([$1], [CXX], [
 
     linux* | k*bsd*-gnu)
       case $cc_basename in
-      icc* | ecc*)
+      # old Intel for x86_64 which still supported -KPIC.
+      ecc*)
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
         ;;
-      ifort*)
+      # icc used to be incompatible with GCC.
+      # ICC 10 doesn't accept -KPIC any more.
+      icc* | ifort*)
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
index 311aca743f09d38b89cff4548fd31923eb2f4fb4..d489fefa65caaff9b9498a8eafbb65e6f23ac176 100644 (file)
@@ -38,6 +38,10 @@ AT_DATA([b.c],
 [[int y;
 ]])
 
+# First see if setting a locale is accepted at all.
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c b.c || exit 77], [], [stdout], [stderr])
+
+# Find out about expected output.
 AT_CHECK([$CC $CPPFLAGS $CFLAGS -c a.c || exit 1], [1], [stdout], [stderr])
 mv -f stdout expected-stdout
 mv -f stderr expected-stderr