diff options
Diffstat (limited to 'core/gcc/build')
-rwxr-xr-x | core/gcc/build | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/gcc/build b/core/gcc/build index 29c1226c..cabb73b7 100755 --- a/core/gcc/build +++ b/core/gcc/build @@ -1,7 +1,6 @@ #!/bin/sh -e patch -p1 < invalid_tls_model.patch -patch -p1 < static-pie.patch # Make sure gmp is built with generic options. cp -v gcc/gmp/configfsf.guess gcc/gmp/config.guess @@ -27,6 +26,8 @@ export libat_cv_have_ifunc=no --disable-werror \ --disable-fixed-point \ --disable-libstdcxx-pch \ + --disable-nls \ + --without-included-gettext \ --enable-checking=release \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -54,3 +55,12 @@ ln -s gcc "$1/usr/bin/cc" # POSIX compliance. install -Dm755 ../c99 "$1/usr/bin/c99" + +# Symlink for LTO. +{ + mkdir -p "$1/usr/lib/bfd-plugins" + + ln -s /usr/libexec/gcc/x86_64-pc-linux-musl/9.2.0/liblto_plugin.so \ + "$1/usr/lib/bfd-plugins/liblto_plugin.so" +} + |