From: Roumen Petrov Date: Thu, 2 Feb 2012 07:37:31 +0000 (+0100) Subject: fixup: restore EXPORTS test X-Git-Tag: v2.4.2.418~193^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b804ffabee2ce373d9bac6ae2b235ec68e0b55e8;p=thirdparty%2Flibtool.git fixup: restore EXPORTS test Commit v2.4.2-120-g962aa91 syntax-check: fix violations and implement sc_prohibit_test_const_follows_var inadvertedly reversed the meaning of the comparison. * build-aux/ltmain.m4sh (func_mode_link) [cygwin|mingw|cegcc]: Restore the EXPORTS test. We need to look at the symbols when it's _not_ already a .def file (in which case we trust the user input blindly). Copyright-paperwork-exempt: Yes Signed-off-by: Peter Rosin --- diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 00d063c18..ca2980177 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -7376,7 +7376,7 @@ EOF cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile - if test EXPORTS = "`$SED 1q $export_symbols`"; then + if test EXPORTS != "`$SED 1q $export_symbols`"; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds.