From: Bruno Haible Date: Fri, 15 Feb 2019 23:23:10 +0000 (+0100) Subject: libtextstyle: Improve the way the library is built. X-Git-Tag: v0.20~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa6e9aa006ab75b7b24c6e44297285197662054f;p=thirdparty%2Fgettext.git libtextstyle: Improve the way the library is built. * libtextstyle/lib/Makefile.am (libtextstyle_la_LDFLAGS): Add '-no-undefined', needed for building on older versions of AIX and useful to verify no undefined symbols are used by mistake. Add '-export-symbols', to reduce the loading time of the shared library. --- diff --git a/libtextstyle/lib/Makefile.am b/libtextstyle/lib/Makefile.am index 29a8ab954..51df1c57a 100644 --- a/libtextstyle/lib/Makefile.am +++ b/libtextstyle/lib/Makefile.am @@ -260,6 +260,8 @@ LTV_AGE=0 # How to build libtextstyle.la. libtextstyle_la_LDFLAGS += \ + -no-undefined \ + -export-symbols $(srcdir)/libtextstyle.sym \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) # Use the C++ compiler only when needed.