From 1da334e539a5d32bf87981d42ad8ac0eb96efe42 Mon Sep 17 00:00:00 2001 From: NicJA Date: Mon, 11 Apr 2016 22:01:13 +0000 Subject: [PATCH] store the configure lto option and use it as the template default. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@52598 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- config/build.cfg.in | 3 +++ config/make.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/build.cfg.in b/config/build.cfg.in index 7aa801e602..0d785f5f95 100644 --- a/config/build.cfg.in +++ b/config/build.cfg.in @@ -34,6 +34,9 @@ TARGET_STRIP := $(TARGET_DEF_STRIP) HOST_STRIP := $(HOST_DEF_STRIP) endif +TARGET_LTO := @aros_config_lto@ + + KERNEL_CXXFLAGS := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(KERNEL_CFLAGS))) TARGET_CXXFLAGS := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(TARGET_CFLAGS))) diff --git a/config/make.tmpl b/config/make.tmpl index 84f6883d55..9b909f1983 100644 --- a/config/make.tmpl +++ b/config/make.tmpl @@ -1349,7 +1349,7 @@ BDID := $(BDTARGETID) cflags=$(CFLAGS) dflags=$(BD_CFLAGS) cxxflags=$(CXXFLAGS) dxxflags=$(BD_CXXFLAGS) ldflags=$(LDFLAGS) \ aflags=$(AFLAGS) uselibs= usehostlibs= usestartup=yes detach=no nix=no \ includedir= libdir= \ - compiler=target linker= lto=yes + compiler=target linker= lto=$(TARGET_LTO) .PHONY : %(mmake) @@ -1446,7 +1446,7 @@ GLOB_MKDIRS += $(BD_OBJDIR) $(BD_TARGETDIR) objdir=$(GENDIR)/$(CURDIR) targetdir=$(AROSDIR)/$(CURDIR) \ cflags=$(CFLAGS) dflags=$(BD_CFLAGS) ldflags=$(LDFLAGS) \ includedir= libdir= \ - uselibs= usehostlibs= usestartup=yes detach=no lto=yes + uselibs= usehostlibs= usestartup=yes detach=no lto=$(TARGET_LTO) .PHONY : %(mmake) -- 2.11.4.GIT