From 92eb89aace9fd41e43eee33f5c392adf1bcf8963 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Thu, 16 Dec 2010 21:41:27 +0100 Subject: [PATCH] Fix PIC flags with MPI wrappers using Portland on GNU/Linux. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]: Match Portland compilers also using $CC -V output, to avoid false negatives with MPI compiler drivers. Report by Christian Rössel. Signed-off-by: Ralf Wildenhues --- ChangeLog | 6 ++++++ libltdl/m4/libtool.m4 | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1dac76840..cbb02622b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-12-16 Ralf Wildenhues + Fix PIC flags with MPI wrappers using Portland on GNU/Linux. + * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]: + Match Portland compilers also using $CC -V output, to avoid + false negatives with MPI compiler drivers. + Report by Christian Rössel. + * libltdl/m4/libtool.m4 (_LT_SETUP): Fix quoting for PATH_SEPARATOR. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 59114b4ba..62f9040b2 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,' ;; + *Portland\ Group*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; esac ;; esac -- 2.47.2