Skip to content

Commit

Permalink
Remove LTO code, shrink install size by ~100MB
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower committed Jun 7, 2022
1 parent a871782 commit 5dd03b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5dd03b9

Please sign in to comment.