From: Ralf Wildenhues Date: Fri, 17 Dec 2010 19:30:53 +0000 (+0100) Subject: Fix PIC flags with mpif77 using ifort on GNU/Linux. X-Git-Tag: v2.4.2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ba8c55de025805c69d46e76f1a352658e01382;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index cbb02622b..52dd99c8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-12-20 Ralf Wildenhues + + 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 Fix PIC flags with MPI wrappers using Portland on GNU/Linux. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 62f9040b2..a1df87d2b 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -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'