From aa6e9aa006ab75b7b24c6e44297285197662054f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 16 Feb 2019 00:23:10 +0100 Subject: [PATCH] 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. --- libtextstyle/lib/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.47.2