]> 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>
Sun, 7 Jul 2019 08:19:25 +0000 (10:19 +0200)
* gettext-runtime/intl/Makefile.am (OTHER_LDFLAGS): Add an -export-symbols-regex
option.

gettext-runtime/intl/Makefile.am

index 5f0b03fa482ddd06bdbf1c7bc2a313de2cbd48da..ec425971246e23e93066155233c10a97c625dd33 100644 (file)
@@ -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)