]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libgettextpo: Tidy up exported symbols.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 20:33:32 +0000 (22:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 20:33:32 +0000 (22:33 +0200)
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS): Add an
-export-symbols-regex option.

gettext-tools/libgettextpo/Makefile.am

index e5688b82fc6a15c9a39077b452e6d78c3050691c..f88f8d1d62f2deb750eb4e1759db40867327e5f5 100644 (file)
@@ -108,11 +108,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