Patchwork [4/4] Add new slim-lto-bootstrap.mk build-target

login
register
mail settings
Submitter Markus Trippelsdorf
Date Sept. 14, 2012, 10:26 a.m.
Message ID <20120914102608.GE263@x4>
Download mbox | patch
Permalink /patch/183874/
State New
Headers show

Comments

Markus Trippelsdorf - Sept. 14, 2012, 10:26 a.m.
2012-09-13  Markus Trippelsdorf  <markus@trippelsdorf.de>

	* config/slim-lto-bootstrap.mk: new build-config

Patch

diff --git a/config/slim-lto-bootstrap.mk b/config/slim-lto-bootstrap.mk
new file mode 100644
index 0000000..11d1252
--- /dev/null
+++ b/config/slim-lto-bootstrap.mk
@@ -0,0 +1,9 @@ 
+# This option enables slim LTO for stage2 and stage3.
+
+STAGE2_CFLAGS += -flto=jobserver -fno-fat-lto-objects -frandom-seed=1
+STAGE3_CFLAGS += -flto=jobserver -fno-fat-lto-objects -frandom-seed=1
+STAGE_CFLAGS += -fuse-linker-plugin
+STAGEprofile_CFLAGS += -fno-lto
+AR = gcc-ar
+NM = gcc-nm
+RANLIB = gcc-ranlib