summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-04 20:27:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-06 08:18:06 +0100
commit47b4ee1a1a2a0212ffcf3e85647e9f9f67276ee3 (patch)
tree4dc94e2ea216efee2b583a9fa4ecd13fe884889d /configure.ac
parentcedc8a942e451a63dd1e7dae7f25642c0fcb4be8 (diff)
limit symbols exported when using --enable-mergelibs
when doing LTO and --enable-mergelibs, we can improve the effectiveness of LTO by marking more code as internal to the merged library. So introduce a new macro UNLESS_MERGELIBS, which we can wrap around *_DLLPUBLIC annotations Also introduced here is a script that can be run on a completed build to determine which classes can be marked with this macro. Change-Id: I73fb87c897489da53791277d0b66b01f884ba061 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89991 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 01c85265ccf3..79041c595948 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12875,6 +12875,7 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then
fi
MERGELIBS="TRUE"
AC_MSG_RESULT([yes])
+ AC_DEFINE(ENABLE_MERGELIBS)
else
AC_MSG_RESULT([no])
fi