From 6bf87179689155652ba39ad4ac1c91b0499629b1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 7 Jul 2019 10:19:25 +0200 Subject: [PATCH] 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. --- gettext-runtime/intl/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gettext-runtime/intl/Makefile.am b/gettext-runtime/intl/Makefile.am index f5b9787eb..01e08681e 100644 --- a/gettext-runtime/intl/Makefile.am +++ b/gettext-runtime/intl/Makefile.am @@ -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) -- 2.47.2