From 5dd03b9be817d280f8993a70c5ed389f7b91051e Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Tue, 7 Jun 2022 14:03:44 -0700 Subject: [PATCH] Remove LTO code, shrink install size by ~100MB --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ecf773a..85a67fa 100644 --- a/Makefile +++ b/Makefile @@ -204,7 +204,7 @@ configure += --disable-nls configure += --without-python configure += --disable-bootstrap configure += --enable-languages=c,c++ -configure += --enable-lto +configure += --disable-lto configure += --enable-static=yes configure += --disable-libstdcxx-verbose configure += --disable-decimal-float @@ -495,7 +495,7 @@ clean: .cleaninst.LINUX.clean .cleaninst.LINUX32.clean .cleaninst.WIN32.clean .c .stage.%.strip: .stage.%.libstdcpp-nox echo STAGE: $@ - ($(call setenv,$@); $(call host,$@)-strip $(call install,$@)/bin/*$(call exe,$@) $(call install,$@)/libexec/gcc/$(ARCH)/*/c*$(call exe,$@) $(call install,$@)/libexec/gcc/$(ARCH)/*/lto1$(call exe,$@) || true ) > $(call log,$@) 2>&1 + ($(call setenv,$@); $(call host,$@)-strip $(call install,$@)/bin/*$(call exe,$@) $(call install,$@)/libexec/gcc/$(ARCH)/*/c*$(call exe,$@) || true ) > $(call log,$@) 2>&1 touch $@ .stage.%.post: .stage.%.strip