From 2b8a91382d6141786098a744322cf3c31fb76ea0 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 18 Mar 2007 18:44:42 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ tests/mdemo/Makefile.am | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69f507218..bade599c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-03-18 Ralf Wildenhues + * 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 diff --git a/tests/mdemo/Makefile.am b/tests/mdemo/Makefile.am index a6dbdc94c..5dd833a7e 100644 --- a/tests/mdemo/Makefile.am +++ b/tests/mdemo/Makefile.am @@ -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 -- 2.47.3