diff options
author | dzwdz | 2023-08-17 00:36:04 +0200 |
---|---|---|
committer | dzwdz | 2023-08-17 00:50:52 +0200 |
commit | 292b2386d766826b15f5ca084d37aa2c485fdda6 (patch) | |
tree | 125c217a90daa957548e9acb8bdecfff3d8374b2 /contrib/dep_builders/binutils | |
parent | a454a4ee0c50d2a9f4eb340d4a9ec60b9e089c9a (diff) |
build: rework how sysroots work
/usr/include is now built on the fly, letting me merge include files from
multiple modules, which should be a win for organization later on.
binutils & gcc need to be recompiled.
limits.h shamelessly stolen from heat on #osdev, as gcc stopped providing me
with its own header. which was a hack in the first place
Diffstat (limited to 'contrib/dep_builders/binutils')
-rwxr-xr-x | contrib/dep_builders/binutils | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/dep_builders/binutils b/contrib/dep_builders/binutils index 42dd04b..7746525 100755 --- a/contrib/dep_builders/binutils +++ b/contrib/dep_builders/binutils @@ -10,9 +10,10 @@ fi export PREFIX="$(pwd)/toolchain/prefix/" export PATH="$(pwd)/toolchain/prefix/bin/:$PATH" BUILDDIR="$(pwd)/toolchain/binutils-build/" -SYSROOT="$(pwd)/sysroot/" +SYSROOT="$(pwd)/out/sysrootu/" mkdir -p $PREFIX mkdir -p $BUILDDIR +make out/sysrootu/usr/include/ cd $BUILDDIR @@ -23,5 +24,5 @@ cd $BUILDDIR --disable-nls \ --disable-werror mkdir -p gas/doc/ # stupid workaround for the broken build -make -j4 +make make install |