Comments
Patch
@@ -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
@@ -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
Hi, attached patch actually makes gcc-4.8 useable after removing builddir when using native AIX ld, as libstdc++ now really is statically linked into xgcc/xg++, like with other platforms or with GNU binutils on AIX. This also renders those tries/patches needless that drop the RPATH_ENVVAR=LD_LIBRARY_PATH on AIX. Thank you! /haubi/ 2013-01-23 Michael Haubenwallner <michael.haubenwallner@salomon.at> AIX ld does support -bstatic/-bdynamic instead of -Bstatic/-Bdynamic. * gcc/configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld. * gcc/configure: Regenerate.