This requires switching libtool to force -no-undefined behaviour on AIX.
Additionally, get_libname() now does return .so and versions like Linux.
--- /dev/null
+--- ltmain.sh.orig 2009-12-06 22:35:17 +0100
++++ ltmain.sh 2009-12-06 22:35:44 +0100
+@@ -1111,6 +1111,9 @@
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
++ *-aix*)
++ allow_undefined=no
++ ;;
+ *)
+ allow_undefined=yes
+ ;;
+++ /dev/null
---- configure
-+++ configure
-@@ -4657,6 +4657,7 @@
- fi
- esac
- shared_flag='-shared'
-+ shared_flag="$shared_flag "'${wl}-G'
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
+++ /dev/null
---- configure
-+++ configure
-@@ -4664,7 +4664,7 @@
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
+++ /dev/null
---- configure
-+++ configure
-@@ -2494,7 +2494,7 @@
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
+++ /dev/null
---- configure
-+++ configure
-@@ -2444,7 +2444,7 @@
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
-- aix_use_runtimelinking=yes
-+# aix_use_runtimelinking=yes
- break
- fi
- done
+++ /dev/null
---- configure
-+++ configure
-@@ -4614,7 +4614,7 @@
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
-- aix_use_runtimelinking=yes
-+# aix_use_runtimelinking=yes
- break
- fi
- done
+++ /dev/null
---- configure
-+++ configure
-@@ -1466,7 +1466,7 @@
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
-- aix_use_runtimelinking=yes
-+# aix_use_runtimelinking=yes
- break
- ;;
- esac
+++ /dev/null
---- configure
-+++ configure
-@@ -1964,7 +1964,7 @@
- aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
-- need_version=no
-+ need_version=yes
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
--- /dev/null
+--- configure
++++ configure
+@@ -4678,5 +4688,5 @@
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+- archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
++ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"'~${STRIP} -e $output_objdir/$soname~{ echo "#!$soname"; cat $export_symbols; } > $output_objdir/$libname.imp~$RM $output_objdir/$realname; $AR $AR_FLAGS $output_objdir/$realname $output_objdir/$libname.imp $output_objdir/$soname~set dummy $linknames; linknames=; shift; '"while eval 'test \$''# -gt 0'; do eval 'test \"x\$''1\" = \"x\$soname\"' || eval 'linknames=\"\$''linknames \$''1\"'; shift; done"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
--- /dev/null
+--- configure
++++ configure
+@@ -2508,6 +2508,6 @@
+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+- archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
++ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"'~${STRIP} -e $output_objdir/$soname~{ echo "#!$soname"; cat $export_symbols; } > $output_objdir/$libname.imp~$RM $output_objdir/$realname; $AR $AR_FLAGS $output_objdir/$realname $output_objdir/$libname.imp $output_objdir/$soname~set dummy $linknames; linknames=; shift; '"while eval 'test \$''# -gt 0'; do eval 'test \"x\$''1\" = \"x\$soname\"' || eval 'linknames=\"\$''linknames \$''1\"'; shift; done"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
--- /dev/null
+--- configure
++++ configure
+@@ -4678,5 +4678,5 @@
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+- allow_undefined_flag='-berok'
++ allow_undefined_flag=unsupported
+ # Determine the default libpath from the value encoded in an empty executable.
--- /dev/null
+--- configure
++++ configure
+@@ -2508,5 +2508,5 @@
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+- allow_undefined_flag_CXX='-berok'
++ allow_undefined_flag_CXX=unsupported
+ # Determine the default libpath from the value encoded in an empty executable.
--- /dev/null
+--- configure
++++ configure
+@@ -1029,7 +1029,11 @@
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
++ library_names_spec='${libname}${release}${shared_ext}${versuffix}.a ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++ soname_spec='${libname}${release}${shared_ext}$major'
++ # we ship the shared object as part of the import archive,
++ # and unpack the shared object for standalone access.
++ postinstall_cmds='rm -f $destdir/$dlname~$AR x $destdir/$realname $destdir/$dlname'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
--- /dev/null
+--- configure
++++ configure
+@@ -4606,7 +4606,7 @@
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
+ fi
+- aix_use_runtimelinking=no
++ aix_use_runtimelinking=yes
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
--- /dev/null
+--- configure
++++ configure
+@@ -2436,7 +2436,7 @@
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+- aix_use_runtimelinking=no
++ aix_use_runtimelinking=yes
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
--- configure
+++ configure
-@@ -4657,6 +4657,7 @@
+@@ -4657,6 +4657,9 @@
fi
esac
shared_flag='-shared'
-+ shared_flag="$shared_flag "'${wl}-G'
++ if test "$aix_use_runtimelinking" = yes; then
++ shared_flag="$shared_flag "'${wl}-G ${wl}-bernotok'
++ fi
else
# not using gcc
if test "$host_cpu" = ia64; then
--- /dev/null
+--- configure
++++ configure
+@@ -2487,6 +2487,9 @@
+ fi
+ esac
+ shared_flag='-shared'
++ if test "$aix_use_runtimelinking" = yes; then
++ shared_flag="$shared_flag "'${wl}-G ${wl}-bernotok'
++ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
--- /dev/null
+--- configure
++++ configure
+@@ -4665,7 +4665,7 @@
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag='${wl}-G'
++ shared_flag='${wl}-G ${wl}-bernotok'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
--- /dev/null
+--- configure
++++ configure
+@@ -2495,7 +2495,7 @@
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag='${wl}-G'
++ shared_flag='${wl}-G ${wl}-bernotok'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
--- /dev/null
+--- configure
++++ configure
+@@ -1156,7 +1156,11 @@
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++ library_names_spec='${libname}${release}${shared_ext}${versuffix}.a ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++ soname_spec='${libname}${release}${shared_ext}$major'
++ # we ship the shared object as part of the import archive,
++ # and unpack the shared object for standalone access.
++ postinstall_cmds='rm -f $destdir/$dlname~$AR x $destdir/$realname $destdir/$dlname'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+++ /dev/null
---- configure.aixrtl 2007-04-03 11:08:36 +0200
-+++ configure 2007-04-03 11:13:25 +0200
-@@ -15941,7 +15941,7 @@
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
-- aix_use_runtimelinking=yes
-+# aix_use_runtimelinking=yes
- break
- ;;
- esac
+++ /dev/null
---- configure
-+++ configure
-@@ -5402,7 +5402,7 @@
- fi
- esac
- shared_flag='-shared'
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
+++ /dev/null
---- configure
-+++ configure
-@@ -2796,7 +2796,7 @@
- fi
- esac
- shared_flag='-shared'
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
--- /dev/null
+--- configure
++++ configure
+@@ -5403,7 +5403,7 @@
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag="$shared_flag "'${wl}-G'
++ shared_flag="$shared_flag "'${wl}-G ${wl}-bernotok'
+ fi
+ else
+ # not using gcc
--- /dev/null
+--- configure
++++ configure
+@@ -2797,7 +2797,7 @@
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag="$shared_flag "'${wl}-G'
++ shared_flag="$shared_flag "'${wl}-G ${wl}-bernotok'
+ fi
+ else
+ # not using gcc
+++ /dev/null
---- configure
-+++ configure
-@@ -5726,7 +5726,7 @@
- ;;
- esac
- shared_flag='-shared'
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
+++ /dev/null
---- configure
-+++ configure
-@@ -2932,7 +2932,7 @@
- ;;
- esac
- shared_flag='-shared'
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
+++ /dev/null
---- configure
-+++ configure
-@@ -12902,7 +12902,7 @@
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
--- /dev/null
+--- configure.orig 2009-12-04 17:59:31 +0100
++++ configure 2009-12-04 18:02:29 +0100
+@@ -8603,7 +8603,7 @@
+ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+- archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
++ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"'~${STRIP} -e $output_objdir/$soname~{ echo "#!$soname"; cat $export_symbols; } > $output_objdir/$libname.imp~rm -f $output_objdir/$realname; $AR $AR_FLAGS $output_objdir/$realname $output_objdir/$libname.imp $output_objdir/$soname~set dummy $linknames; linknames=; shift; '"while eval 'test \$''# -gt 0'; do eval 'test \"x\$''1\" = \"x\$soname\"' || eval 'linknames=\"\$''linknames \$''1\"'; shift; done"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
--- /dev/null
+--- configure
++++ configure
+@@ -2956,6 +2956,6 @@
+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+- archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
++ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"'~${STRIP} -e $output_objdir/$soname~{ echo "#!$soname"; cat $export_symbols; } > $output_objdir/$libname.imp~$RM $output_objdir/$realname; $AR $AR_FLAGS $output_objdir/$realname $output_objdir/$libname.imp $output_objdir/$soname~set dummy $linknames; linknames=; shift; '"while eval 'test \$''# -gt 0'; do eval 'test \"x\$''1\" = \"x\$soname\"' || eval 'linknames=\"\$''linknames \$''1\"'; shift; done"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
--- /dev/null
+--- configure
++++ configure
+@@ -5737,7 +5741,7 @@
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag='${wl}-G'
++ shared_flag='${wl}-G ${wl}-bernotok'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+++ /dev/null
---- configure
-+++ configure
-@@ -1371,7 +1371,7 @@
- aix[[4-9]]*)
- version_type=linux
- need_lib_prefix=no
-- need_version=no
-+ need_version=yes
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
+++ /dev/null
---- configure
-+++ configure
-@@ -5478,7 +5478,7 @@
- fi
- esac
- shared_flag='-shared'
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
+++ /dev/null
---- configure
-+++ configure
-@@ -5488,7 +5488,7 @@
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
-- if test "$aix_use_runtimelinking" = yes; then
-+ if true || test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
+++ /dev/null
---- configure
-+++ configure
-@@ -5431,7 +5431,7 @@
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
-- aix_use_runtimelinking=yes
-+# aix_use_runtimelinking=yes
- break
- ;;
- esac
--- /dev/null
+--- configure
++++ configure
+@@ -4622,7 +4622,7 @@
+ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+- archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
++ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"'~${STRIP} -e $output_objdir/$soname~{ echo "#!$soname"; cat $export_symbols; } > $output_objdir/$libname.imp~$RM $output_objdir/$realname; $AR $AR_FLAGS $output_objdir/$realname $output_objdir/$libname.imp $output_objdir/$soname~set dummy $linknames; linknames=; shift; '"while eval 'test \$''# -gt 0'; do eval 'test \"x\$''1\" = \"x\$soname\"' || eval 'func_append linknames \" \$''1\"'; shift; done"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
--- /dev/null
+--- configure
++++ configure
+@@ -5567,7 +5567,7 @@
+
+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+- archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
++ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"'~${STRIP} -e $output_objdir/$soname~{ echo "#!$soname"; cat $export_symbols; } > $output_objdir/$libname.imp~$RM $output_objdir/$realname; $AR $AR_FLAGS $output_objdir/$realname $output_objdir/$libname.imp $output_objdir/$soname~set dummy $linknames; linknames=; shift; '"while eval 'test \$''# -gt 0'; do eval 'test \"x\$''1\" = \"x\$soname\"' || eval 'func_append linknames \" \$''1\"'; shift; done"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
--- /dev/null
+--- configure
++++ configure
+@@ -4622,7 +4622,7 @@
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+- allow_undefined_flag='-berok'
++ allow_undefined_flag=unsupported
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
--- /dev/null
+--- configure
++++ configure
+@@ -5567,7 +5567,7 @@
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+- allow_undefined_flag_CXX='-berok'
++ allow_undefined_flag_CXX=unsupported
+ # Determine the default libpath from the value encoded in an empty
+ # executable.
+ cat >conftest.$ac_ext <<_ACEOF
--- /dev/null
+--- configure
++++ configure
+@@ -5488,7 +5488,7 @@
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+- aix_use_runtimelinking=no
++ aix_use_runtimelinking=yes
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
--- /dev/null
+--- configure
++++ configure
+@@ -5479,7 +5479,7 @@
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag="$shared_flag "'${wl}-G'
++ shared_flag="$shared_flag "'${wl}-G ${wl}-bernotok'
+ fi
+ else
+ # not using gcc
--- /dev/null
+--- configure
++++ configure
+@@ -5554,7 +5554,7 @@
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+- shared_flag='${wl}-G'
++ shared_flag='${wl}-G ${wl}-bernotok'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.88 2010/05/11 04:45:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.89 2010/05/20 08:22:15 haubi Exp $
#
# Maintainer: base-system@gentoo.org
#
elt_patches="${elt_patches} uclibc-conf uclibc-ltconf"
case "${CHOST}" in
- *-aix*)
- elt_patches="${elt_patches} hardcode aixrtl"
+ *-aix*) # see bug #213277
+ elt_patches="${elt_patches} hardcode aixrtl aix-noundef"
;;
*-darwin*)
elt_patches="${elt_patches} darwin-ltconf darwin-ltmain darwin-conf"
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.77 2009/10/08 20:10:56 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.78 2010/05/20 08:22:15 haubi Exp $
# @ECLASS: multilib.eclass
# @MAINTAINER:
case ${CHOST} in
*-cygwin|mingw*|*-mingw*) libname="dll";;
*-darwin*) libname="dylib";;
- *-aix*) libname="a";;
*-mint*) libname="irrelevant";;
hppa*-hpux*) libname="sl";;
*) libname="so";;
for ver in "$@" ; do
case ${CHOST} in
*-darwin*) echo ".${ver}.${libname}";;
- *-aix*) echo ".${libname}";;
*-mint*) echo ".${libname}";;
*) echo ".${libname}.${ver}";;
esac