]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix PIC flags with MPI wrappers using Portland on GNU/Linux.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Dec 2010 20:41:27 +0000 (21:41 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Dec 2010 20:42:02 +0000 (21:42 +0100)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index 1dac7684083d455e28329cf18de73785bae6c0cb..cbb02622b301e179603060e505a346269f706206 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       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.
 
index 59114b4ba6fd0fa89447111c6869cce665a18e78..62f9040b218e35adb74e38f4978b95154bf8eda1 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,'
          ;;
+       *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