summaryrefslogtreecommitdiff
path: root/config/bootstrap-lto.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config/bootstrap-lto.mk')
-rw-r--r--config/bootstrap-lto.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/bootstrap-lto.mk b/config/bootstrap-lto.mk
new file mode 100644
index 000000000..bbd3515ea
--- /dev/null
+++ b/config/bootstrap-lto.mk
@@ -0,0 +1,5 @@
+# This option enables LTO for stage2 and stage3.
+
+STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGEprofile_CFLAGS += -fno-lto