configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
authorMichael Haubenwallner <michael.haubenwallner@salomon.at>
Sat, 26 Jan 2013 04:07:08 +0000 (05:07 +0100)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sat, 26 Jan 2013 04:07:08 +0000 (23:07 -0500)
2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>

        * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
        * configure: Regenerate.

From-SVN: r195486

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 3897b8d6a7e1f1c45d301ffe5b611d1e25901274..2603280672ec930ba6afaa15c4e907968fae4694 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
+
+       * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
+       * configure: Regenerate.
+
 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/56098
index a4a773ae780a6404c7f0932ab418491c62ee4eef..5730c9d45177cc63cb9c98c5afeaabcbbca2d0d7 100755 (executable)
@@ -23650,6 +23650,12 @@ elif test x$gcc_cv_ld != x; then
       gcc_cv_ld_static_dynamic=yes
   else
     case "$target" in
+      # AIX ld uses -b flags
+      *-*-aix4.[23]* | *-*-aix[5-9]*)
+       gcc_cv_ld_static_dynamic=yes
+       gcc_cv_ld_static_option="-bstatic"
+       gcc_cv_ld_dynamic_option="-bdynamic"
+       ;;
       # HP-UX ld uses -a flags to select between shared and archive.
       *-*-hpux*)
        if test x"$gnu_ld" = xno; then
index 24568f1371fe3293d79c9f158a22bbf18f04f1ff..b471faef02f0d9b9e86e34f9c9924025955a7e94 100644 (file)
@@ -3317,6 +3317,12 @@ elif test x$gcc_cv_ld != x; then
       gcc_cv_ld_static_dynamic=yes
   else
     case "$target" in
+      # AIX ld uses -b flags
+      *-*-aix4.[[23]]* | *-*-aix[[5-9]]*)
+       gcc_cv_ld_static_dynamic=yes
+       gcc_cv_ld_static_option="-bstatic"
+       gcc_cv_ld_dynamic_option="-bdynamic"
+       ;;
       # HP-UX ld uses -a flags to select between shared and archive.
       *-*-hpux*)
        if test x"$gnu_ld" = xno; then