summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorIsmael Luceno2019-07-17 10:40:33 +0200
committerIsmael Luceno2019-07-17 20:30:39 +0200
commitbb6de00dfcc4ff76372771a200b22f5e55124e2e (patch)
treee958c09b7d13f99b7f9ddc4e93ca87a574ca37fa /gnu
parent327c7ca852b931540314f3071f3e6363b48c57c8 (diff)
gcc: Enable LTO with musl libc
It was disabled due to a bootstrapping issue, but now works.
Diffstat (limited to 'gnu')
-rwxr-xr-xgnu/gcc/BUILD5
-rw-r--r--gnu/gcc/HISTORY1
2 files changed, 2 insertions, 4 deletions
diff --git a/gnu/gcc/BUILD b/gnu/gcc/BUILD
index c579bc6ea0..21f1f9e6b8 100755
--- a/gnu/gcc/BUILD
+++ b/gnu/gcc/BUILD
@@ -109,6 +109,7 @@ OPTS="--enable-checking=release $OPTS" &&
OPTS="--enable-default-pie $OPTS" &&
OPTS="--enable-default-ssp $OPTS" &&
OPTS="--enable-cet=auto $OPTS" &&
+OPTS="--enable-lto $OPTS"
OPTS="$GCC_MULTILIB $OPTS" &&
case "$HOST" in
@@ -119,10 +120,6 @@ case "$HOST" in
OPTS="--disable-libmudflap $OPTS" &&
OPTS="--disable-libsanitizer $OPTS" &&
OPTS="--disable-symvers $OPTS" &&
- OPTS="--disable-lto $OPTS"
- ;;
-*)
- OPTS="--enable-lto $OPTS"
;;
esac &&
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index 1bc34d9bfc..3b9655c7b8 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,5 +1,6 @@
2019-07-17 Ismael Luceno <ismael@sourcemage.org>
* BUILD: Use -O1 for older GCC only
+ Enable LTO with musl-libc
2019-05-28 Ismael Luceno <ismael@sourcemage.org>
* BUILD: Disabled multilib unconditionally for musl