aboutsummaryrefslogtreecommitdiff
path: root/core/gcc/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/gcc/build')
-rwxr-xr-xcore/gcc/build6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/gcc/build b/core/gcc/build
index ef0e87db..29c1226c 100755
--- a/core/gcc/build
+++ b/core/gcc/build
@@ -1,5 +1,8 @@
#!/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
cp -v gcc/gmp/configfsf.sub gcc/gmp/config.sub
@@ -35,7 +38,8 @@ export libat_cv_have_ifunc=no
--enable-threads \
--enable-tls \
--enable-languages=c,c++ \
- --build=x86_64-pc-linux-musl
+ --build=x86_64-pc-linux-musl \
+ --disable-bootstrap
make
make DESTDIR="$1" install