diff options
author | Peter Foley <pefoley2@verizon.net> | 2013-03-02 13:05:18 -0500 |
---|---|---|
committer | Peter Foley <pefoley2@verizon.net> | 2013-03-02 13:05:18 -0500 |
commit | 5b1d2fd1e6c39d44ad65c3aec1b496c7a446b1ea (patch) | |
tree | 6d97006e93b2538368dde5bbe7956b5aa692d0c6 /solenv/gbuild | |
parent | d79bdca7e472c25973388daafdae34d49e393180 (diff) |
more lto fixes
Change-Id: I97eb27a354dfb6b6d94886729c5b6df0b0f7687a
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 4f64bff7eeb4..02e3acd5bcff 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -108,7 +108,7 @@ gb_CXXFLAGS_COMMON += -DLIBO_MERGELIBS endif ifeq ($(ENABLE_LTO),TRUE) -gb_Library_LTOFLAGS := -flto +gb_Library_LTOFLAGS := -flto -fno-use-linker-plugin endif gb_LinkTarget_EXCEPTIONFLAGS := \ diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 1b85ced58a8e..104fe7fbb726 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -104,11 +104,12 @@ gb_CXXFLAGS += -Wno-deprecated-declarations endif endif -ifeq ($(ENABLE_LTO),TRUE) -ifneq ($(COM_GCC_IS_CLANG),TRUE) -gb_LinkTarget_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS) -endif -endif +# Breaks the build, needs more testing +#ifeq ($(ENABLE_LTO),TRUE) +#ifneq ($(COM_GCC_IS_CLANG),TRUE) +#gb_LinkTarget_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS) +#endif +#endif ifneq ($(strip $(SYSBASE)),) gb_CXXFLAGS += --sysroot=$(SYSBASE) |