]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
fixup: restore EXPORTS test
authorRoumen Petrov <bugtrack@roumenpetrov.info>
Thu, 2 Feb 2012 07:37:31 +0000 (08:37 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Thu, 2 Feb 2012 07:39:20 +0000 (08:39 +0100)
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 <peda@lysator.liu.se>
build-aux/ltmain.m4sh

index 00d063c182564b0fee5db54e03ed1530e848b52b..ca2980177efebc1c494a50a68a2a4c3086824b15 100644 (file)
@@ -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.