Introducing support for POSIX-nm, required for AIX.

2016-03-02 Thread Michael Haubenwallner
Hi! On AIX, when _GLOBAL__* symbols are exported from shared libraries, and the final executable is linked with runtime linking enabled, GNU C++ exception handling may break. Unfortunately, the command to create the list of exported symbols for AIX is quite complicated at the moment, not only bec

[PATCH 1/2] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-02 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 2/2] AIX: Stop exporting any _GLOBAL__ symbol.

2016-03-02 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 ++