aboutsummaryrefslogtreecommitdiff
path: root/core/gcc/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-03-17 12:55:24 +0300
committerCem Keylan <cem@ckyln.com>2020-03-17 12:55:24 +0300
commite1cc2511d04693165deec22fb448bac9838f57c2 (patch)
tree4a04b3816b78d5c79c0754e46ea6d73c61e99e43 /core/gcc/build
parent32dc7a9e03a70ed8a6405f756a8678211f2acf1d (diff)
downloadrepository-e1cc2511d04693165deec22fb448bac9838f57c2.tar.gz
meta: sync core with KISS
Diffstat (limited to 'core/gcc/build')
-rwxr-xr-xcore/gcc/build12
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"
+}
+