From ad01db1911291e7a6fb8c62e3b3ea22923f98b63 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 25 May 2008 10:40:26 +0200 Subject: [PATCH] Fix ifort settings again. * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] : Unlike icc and ecc, not all ifort versions understand `-KPIC', e.g. version 10.1, so use `-fPIC' instead. Report by Jeff Squyres. Signed-off-by: Ralf Wildenhues --- ChangeLog | 8 ++++++++ libltdl/m4/libtool.m4 | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1ec69aea..6538f629 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-05-25 Ralf Wildenhues + + Fix ifort settings again. + * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] : + Unlike icc and ecc, not all ifort versions understand `-KPIC', + e.g. version 10.1, so use `-fPIC' instead. + Report by Jeff Squyres. + 2008-05-20 Eric Blake Resynchronize argz whitespace changes from gnulib. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 6f9ac1b0..654f54a9 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -3964,11 +3964,16 @@ m4_if([$1], [CXX], [ linux* | k*bsd*-gnu) case $cc_basename in - icc* | ecc* | ifort*) + icc* | 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*) + _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* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project)