]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Don't export the glwthread* symbols from libintl on native Windows.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Jul 2019 08:19:25 +0000 (10:19 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 10:52:33 +0000 (12:52 +0200)
* gettext-runtime/intl/Makefile.am (OTHER_LDFLAGS): Add an -export-symbols-regex
option.

gettext-runtime/intl/Makefile.am

index f5b9787eb0ef15c2a7b230dcc829bfa58f17df51..01e08681e4faa8c877d2dd8a25a2dc9ec20956a2 100644 (file)
@@ -399,9 +399,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)