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
* 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
* 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
* 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 ++
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
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
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
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
>