From: Bruno Haible Date: Sun, 7 Jul 2019 08:19:25 +0000 (+0200) Subject: intl: Don't export the glwthread* symbols from libintl on native Windows. X-Git-Tag: v0.21~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28fb06a64d83dcdbc97d251873dc37fd1c569e2c;p=thirdparty%2Fgettext.git intl: Don't export the glwthread* symbols from libintl on native Windows. * gettext-runtime/intl/Makefile.am (OTHER_LDFLAGS): Add an -export-symbols-regex option. --- diff --git a/gettext-runtime/intl/Makefile.am b/gettext-runtime/intl/Makefile.am index 5f0b03fa4..ec4259712 100644 --- a/gettext-runtime/intl/Makefile.am +++ b/gettext-runtime/intl/Makefile.am @@ -384,9 +384,11 @@ LTV_REVISION=6 LTV_AGE=1 # How to build libintl.la and libgnuintl.la. +# Limit the exported symbols: Don't export glwthread* (from gnulib modules). OTHER_LDFLAGS = \ @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(INTL_WINDOWS_LIBS) @LTLIBTHREAD@ \ -no-undefined \ + -export-symbols-regex '^([^g]|g[^l]|gl[^w]|glw[^t]|glwt[^h]|glwth[^r]|glwthr[^e]|glwthre[^a]|glwthrea[^d]).*' \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) libintl_la_LDFLAGS = $(AM_LDFLAGS) $(OTHER_LDFLAGS)