]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix PIC flags with mpif77 using ifort on GNU/Linux.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 17 Dec 2010 19:30:53 +0000 (20:30 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 20 Dec 2010 03:05:59 +0000 (04:05 +0100)
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]:
Match Intel compiler also using $CC -V output, to avoid false
negatives with compiler drivers like mpif77.
Report by Christian Rössel.

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

index cbb02622b301e179603060e505a346269f706206..52dd99c8f69859c67dc6fca78ba17a7c8c6cee64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix PIC flags with mpif77 using ifort on GNU/Linux.
+       * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]:
+       Match Intel compiler also using $CC -V output, to avoid false
+       negatives with compiler drivers like mpif77.
+       Report by Christian Rössel.
+
 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix PIC flags with MPI wrappers using Portland on GNU/Linux.
index 62f9040b218e35adb74e38f4978b95154bf8eda1..a1df87d2becf9c71deb5cfb49d490aee38c74335 100644 (file)
@@ -4340,6 +4340,11 @@ m4_if([$1], [CXX], [
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
          ;;
+        *Intel*\ [[CF]]*Compiler*)
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+         ;;
        *Portland\ Group*)
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'