[PATCH PING] rebased AIX-driven libtool improvement patches

2016-03-10 Thread Michael Haubenwallner
Hi Pavel, as requested, here's two sets of rebased improvement patches to simplify fixing AIX problems (at least), to be subsequently imported into gcc. The original posts were: 1: http://lists.gnu.org/archive/html/libtool-patches/2015-05/msg1.html 2: http://lists.gnu.org/archive/html/libtool

[PATCH 1/4] Fix func_echo_all inside configure.

2016-03-10 Thread Michael Haubenwallner
* m4/libtool.m4 (func_echo_all): Properly get $* through m4. --- m4/libtool.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index ee292af..7b8b591 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1218,7 +1218,7 @@ fi # Invoke $ECHO with all a

[PATCH 3/4] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-10 Thread Michael Haubenwallner
* m4/libtool.m4 (LT_PATH_NM): Detect POSIX-compatible nm for AIX. In BSD mode, the AIX nm does not tell whether a symbol is weak, need to use POSIX mode instead. (_LT_CMD_GLOBAL_SYMBOLS): Support POSIX-compatible nm. Reorder to allow for platform specific hooks during transformation of global_sym

[PATCH 4/4] AIX: Stop exporting any _GLOBAL__ symbol.

2016-03-10 Thread Michael Haubenwallner
* m4/libtool.m4 (_LT_LINKER_SHLIBS): On AIX, GNU g++ generates _GLOBAL__* symbols as, amongst others, landing pads for C++ exceptions. These symbols must not be exported from shared libraries, or exception handling may break for applications with runtime linking enabled. --- m4/libtool.m4 | 2 ++

[PATCH 2/4] AIX: Do not rely on OBJECT_MODE env var being set.

2016-03-10 Thread Michael Haubenwallner
To compile 64-bit, AIX toolchain provides support to set the environment variable OBJECT_MODE=64, to avoid the need for changing anything else in the build environment. However, gcc ignores OBJECT_MODE, and does not set it while building gcc itself during its multi-lib build either. Also, CC may be

Re: [PATCH 3/4] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-10 Thread Peter Rosin
Hi Michael, I had a look since I wrote a patch for POSIX nm a couple of years ago that I never submitted (I didn't see any use case) which looked very similar, excepting the AIX-ism in your version. On 2016-03-10 10:01, Michael Haubenwallner wrote: > * m4/libtool.m4 (LT_PATH_NM): Detect POSIX-com

Re: [PATCH 3/4] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-10 Thread Eric Blake
On 03/10/2016 04:29 AM, Peter Rosin wrote: >> + elif test "$lt_cv_nm_interface" = "POSIX nm"; then >> +symxfrm="\\2 $ac_symprfx\\1 \\1" >> +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^[[ >> ]]*$ac_symprfx$sympat[[ ]][[]]*\($symcode$symcode*\)[[ ]][[ >>]]*.*$opt_cr

Re: [PATCH 1/4] Fix func_echo_all inside configure.

2016-03-10 Thread Eric Blake
On 03/10/2016 02:01 AM, Michael Haubenwallner wrote: > * m4/libtool.m4 (func_echo_all): Properly get $* through m4. > --- > m4/libtool.m4 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/m4/libtool.m4 b/m4/libtool.m4 > index ee292af..7b8b591 100644 > --- a/m4/libtool.m4 >