From 6aaf1ec5a781b50ceda6d0d288a43dba435be2ce Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Sun, 17 Jan 2016 18:13:25 -0500 Subject: LTO fixes for android Change-Id: I2d4cedac4081260c5147d8c11904d042c765e3a6 Reviewed-on: https://gerrit.libreoffice.org/21557 Tested-by: Jenkins Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- solenv/gbuild/platform/android.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'solenv/gbuild') 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 := : -- cgit