summaryrefslogtreecommitdiff
path: root/config/bootstrap-lto-noplugin.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config/bootstrap-lto-noplugin.mk')
-rw-r--r--config/bootstrap-lto-noplugin.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/bootstrap-lto-noplugin.mk b/config/bootstrap-lto-noplugin.mk
new file mode 100644
index 00000000000..a5073365b5a
--- /dev/null
+++ b/config/bootstrap-lto-noplugin.mk
@@ -0,0 +1,6 @@
+# This option enables LTO for stage2 and stage3 on
+# hosts without linker plugin support.
+
+STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
+STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
+STAGEprofile_CFLAGS += -fno-lto