From: Bruno Haible Date: Sun, 20 Jun 2021 20:33:32 +0000 (+0200) Subject: libgettextpo: Tidy up exported symbols. X-Git-Tag: v0.21.1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4e77e66875390e50de65bdb6c0cc227389e2209;p=thirdparty%2Fgettext.git libgettextpo: Tidy up exported symbols. * gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS): Add an -export-symbols-regex option. --- diff --git a/gettext-tools/libgettextpo/Makefile.am b/gettext-tools/libgettextpo/Makefile.am index 96cab9784..9694904eb 100644 --- a/gettext-tools/libgettextpo/Makefile.am +++ b/gettext-tools/libgettextpo/Makefile.am @@ -107,11 +107,14 @@ LTV_AGE=5 # How to build libgettextpo.la. # Don't make it depend on libgettextsrc.la or libgettextlib.la, since they # define an uncontrolled amount of symbols. +# Limit the exported symbols: Don't export libgettextpo_*, except do export +# libgettextpo_version. libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING) libgettextpo_la_LDFLAGS = \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) \ - @LTLIBINTL@ @LTLIBICONV@ -lc -no-undefined + @LTLIBINTL@ @LTLIBICONV@ -lc -no-undefined \ + -export-symbols-regex '^([^l]|l[^i]|li[^b]|lib[^g]|libg[^e]|libge[^t]|libget[^t]|libgett[^e]|libgette[^x]|libgettex[^t]|libgettext[^p]|libgettextp[^o]|libgettextpo[^_]|libgettextpo_version).*' # Tell the mingw or Cygwin linker which symbols to export. if WOE32DLL