summaryrefslogtreecommitdiff
path: root/tools/dep_builders
diff options
context:
space:
mode:
authordzwdz2023-02-24 22:41:50 +0100
committerdzwdz2023-02-24 22:41:50 +0100
commit5faf16e48457f3ea1dda7af76f9c59b007a054f8 (patch)
tree1ca1e620b778e6d175a7e2fb77792cc0df0d258a /tools/dep_builders
parentfca80df9e638a7d68147d91cbffda95aed96ab5c (diff)
toolchain: partially set up the sysroot
Diffstat (limited to 'tools/dep_builders')
-rwxr-xr-xtools/dep_builders/binutils3
-rwxr-xr-xtools/dep_builders/gcc5
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/dep_builders/binutils b/tools/dep_builders/binutils
index 3e6b7b7..42dd04b 100755
--- a/tools/dep_builders/binutils
+++ b/tools/dep_builders/binutils
@@ -19,8 +19,9 @@ cd $BUILDDIR
../binutils/configure \
--target=x86_64-camellia \
--prefix="$PREFIX" \
- --with-sysroot \
+ --with-sysroot="$SYSROOT" \
--disable-nls \
--disable-werror
+mkdir -p gas/doc/ # stupid workaround for the broken build
make -j4
make install
diff --git a/tools/dep_builders/gcc b/tools/dep_builders/gcc
index 302bfdc..f3e72a0 100755
--- a/tools/dep_builders/gcc
+++ b/tools/dep_builders/gcc
@@ -19,9 +19,10 @@ cd $BUILDDIR
../gcc/configure \
--target=x86_64-camellia \
--prefix="$PREFIX" \
- --disable-nls \
- --without-headers \
+ --with-sysroot="$SYSROOT" \
--enable-languages=c,c++ \
+ --disable-nls \
+ --disable-gcov \
--disable-werror
make -j4 all-gcc
make -j4 all-target-libgcc