diff options
author | Cem Keylan <cem@ckyln.com> | 2020-03-17 12:55:24 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-03-17 12:55:24 +0300 |
commit | e1cc2511d04693165deec22fb448bac9838f57c2 (patch) | |
tree | 4a04b3816b78d5c79c0754e46ea6d73c61e99e43 /core/gcc/build | |
parent | 32dc7a9e03a70ed8a6405f756a8678211f2acf1d (diff) | |
download | repository-e1cc2511d04693165deec22fb448bac9838f57c2.tar.gz |
meta: sync core with KISS
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" +} + |