From 38f1ad3d3ad5f7600e98c46f9beeeab0f2eecfb3 Mon Sep 17 00:00:00 2001 From: Charles Wilson Date: Thu, 6 Nov 2003 13:57:25 +0000 Subject: [PATCH] * m4/libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [cygwin*, mingw*]: when extracting symbols from an import lib (occurs if --enable-shared --disable-static), the output of $global_symbol_pipe is not the same as when extracting from a static library (the default case). Add extra filters to $export_symbols_cmds to process this sort of output in addition to 'normal' static-lib output. --- ChangeLog | 10 ++++++++++ m4/libtool.m4 | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9dfe79146..03d56e4a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2003-11-06 Charles Wilson + + * m4/libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [cygwin*, mingw*]: + when extracting symbols from an import lib (occurs if + --enable-shared --disable-static), the output of + $global_symbol_pipe is not the same as when extracting from a + static library (the default case). Add extra filters to + $export_symbols_cmds to process this sort of output in addition to + 'normal' static-lib output. + 2003-11-06 Charles Wilson , Gary V. Vaughan diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 4b5567e9e..a355c790d 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -5080,7 +5080,7 @@ ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' -- 2.47.2