diff options
author | Peter Foley <pefoley2@pefoley.com> | 2016-01-17 18:13:25 -0500 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-18 22:39:07 +0000 |
commit | 6aaf1ec5a781b50ceda6d0d288a43dba435be2ce (patch) | |
tree | 0c291c21e4c43789825b760da6aa5f9fee2a6d98 /solenv | |
parent | af6a39120f590a49088d58c14d46f206abe3e4c2 (diff) |
LTO fixes for android
Change-Id: I2d4cedac4081260c5147d8c11904d042c765e3a6
Reviewed-on: https://gerrit.libreoffice.org/21557
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/android.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/android.mk b/solenv/gbuild/platform/android.mk index ae1a9ea0b618..55b6c5c1aa10 100644 --- a/solenv/gbuild/platform/android.mk +++ b/solenv/gbuild/platform/android.mk @@ -20,6 +20,12 @@ gb_STDLIBS := \ endif +ifeq ($(ENABLE_LTO),TRUE) + gb_LTOPLUGINFLAGS := --plugin $(shell $(CC) --print-prog-name=liblto_plugin.so) + AR_FLAGS := rcs --plugin $(shell $(CC) --print-prog-name=liblto_plugin.so) + RANLIB := $(RANLIB) --plugin $(shell $(CC) --print-prog-name=liblto_plugin.so) +endif + # No unit testing can be run gb_CppunitTest_CPPTESTPRECOMMAND := : |