ELT-patches/aixrtl: Need -fPIC on AIX since gcc-4.8 or so.
authorMichael Haubenwallner <haubi@gentoo.org>
Mon, 9 Feb 2015 12:53:37 +0000 (12:53 +0000)
committerMichael Haubenwallner <haubi@gentoo.org>
Mon, 9 Feb 2015 12:53:37 +0000 (12:53 +0000)
eclass/ChangeLog
eclass/ELT-patches/aixrtl/2.0.0-fpic-c [new file with mode: 0644]
eclass/ELT-patches/aixrtl/2.0.0-fpic-cxx [new file with mode: 0644]

index 0e427cef47a6d851c44552fc33499b02dffbc6c2..946ba0661d8588afaccf0edd10f15ab450eb53d9 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1523 2015/02/08 22:03:56 grknight Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1524 2015/02/09 12:53:37 haubi Exp $
+
+  09 Feb 2015; Michael Haubenwallner <haubi@gentoo.org>
+  +ELT-patches/aixrtl/2.0.0-fpic-c, +ELT-patches/aixrtl/2.0.0-fpic-cxx:
+  Need -fPIC on AIX since gcc-4.8 or so.
 
   08 Feb 2015; Brian Evans <grknight@gentoo.org> mysql-multilib.eclass:
   Fix dependency on ncurses for bug 539354 and restructure to remove user
diff --git a/eclass/ELT-patches/aixrtl/2.0.0-fpic-c b/eclass/ELT-patches/aixrtl/2.0.0-fpic-c
new file mode 100644 (file)
index 0000000..bb3cb42
--- /dev/null
@@ -0,0 +1,12 @@
+--- configure
++++ configure
+@@ -1,6 +1,9 @@
+       if test "$host_cpu" = ia64; then
+       # AIX 5 now supports IA64 processor
+       lt_prog_compiler_static='-Bstatic'
++      lt_prog_compiler_pic='-fPIC'
++      else
++      lt_prog_compiler_pic='-fPIC'
+       fi
+       ;;
+ 
diff --git a/eclass/ELT-patches/aixrtl/2.0.0-fpic-cxx b/eclass/ELT-patches/aixrtl/2.0.0-fpic-cxx
new file mode 100644 (file)
index 0000000..532bbcf
--- /dev/null
@@ -0,0 +1,12 @@
+--- configure
++++ configure
+@@ -1,6 +1,9 @@
+       if test "$host_cpu" = ia64; then
+       # AIX 5 now supports IA64 processor
+       lt_prog_compiler_static_CXX='-Bstatic'
++      lt_prog_compiler_pic_CXX='-fPIC'
++      else
++      lt_prog_compiler_pic_CXX='-fPIC'
+       fi
+       ;;
+