]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/mdemo/Makefile.am (libmlib_la_LDFLAGS): Add
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 18 Mar 2007 18:44:42 +0000 (18:44 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 18 Mar 2007 18:44:42 +0000 (18:44 +0000)
`-export-symbols-regex ".*"' because the convenience libltdl
uses export markers and thus turns off autoexport on w32.  Fixes
test failures for Cygwin and MinGW.
Bug analysis by Charles Wilson.

ChangeLog
tests/mdemo/Makefile.am

index 69f507218f290fc1a72f3f1f454afa4698fb58f4..bade599c001d14475856b9b87783b6e14f180663 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * tests/mdemo/Makefile.am (libmlib_la_LDFLAGS): Add
+       `-export-symbols-regex ".*"' because the convenience libltdl
+       uses export markers and thus turns off autoexport on w32.  Fixes
+       test failures for Cygwin and MinGW.
+       Bug analysis by Charles Wilson.
+
        * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
        (_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
        (_LT_LANG_CXX_CONFIG, _LT_SYS_HIDDEN_LIBDEPS) [ interix ]: When
index a6dbdc94c13fae12f790d786497b1650dfb9a58d..5dd833a7e78d8e76af62dd77f981b6f519e87d9d 100644 (file)
@@ -1,6 +1,6 @@
 ## Makefile.am -- Process this file with automake to produce Makefile.in
 ##
-## Copyright (C) 2003, 2004, 2005 Free Software Foundation
+## Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation
 ##
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -35,9 +35,12 @@ libfoo2_la_LDFLAGS = -no-undefined -module -export-symbols-regex "libfoo2.*"
 libsub_la_SOURCES = sub.c
 libsub_la_LDFLAGS = -no-undefined
 
+## Use -export-symbols-regex here explicitly because libltdl marks
+## its exported symbols, and we use libltdl as a convenience archive.
+## Thus, on w32, auto-exporting is turned off.
 libmlib_la_SOURCES = mlib.c
 libmlib_la_LIBADD = @LIBLTDL@ "-dlopen" foo1.la "-dlopen" libfoo2.la
-libmlib_la_LDFLAGS = -no-undefined
+libmlib_la_LDFLAGS = -no-undefined -export-symbols-regex ".*"
 libmlib_la_DEPENDENCIES = @LIBLTDL@ libsub.la foo1.la libfoo2.la
 
 noinst_HEADERS = foo.h