aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-01-12 20:20:05 +0100
committerAleksa Vučković <aleksav013@gmail.com>2022-01-12 20:20:05 +0100
commit0daf9be64d6e5ef7c3e2883254d4982120488566 (patch)
treea5bdb6e88395a5a225c36ea146b6e1735960719a
parent0d4b19bdc8ea4e60c1736d1afe92e8ece2757843 (diff)
--prefix=$SYSROOT
-rwxr-xr-xscripts/setup.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 950bb3b..38fc428 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -58,16 +58,13 @@ build_binutils()
if [ ! -f Makefile ]; then
../configure --target=i686-aleksa \
- --prefix=/usr \
+ --prefix="$SYSROOT/usr" \
--with-sysroot="$SYSROOT" \
- --bindir=/usr/bin \
- --libdir=/usr/lib \
- --disable-nls \
- --disable-werror
+ --disable-nls
fi
make -j4
- make DESTDIR="$SYSROOT" install
+ make install
cd "../.." || exit
}
@@ -86,10 +83,9 @@ build_gcc()
if [ ! -f Makefile ]; then
../configure --target=i686-aleksa \
- --prefix=/usr \
+ --prefix="$SYSROOT/usr" \
--with-sysroot="$SYSROOT" \
--disable-nls \
- --disable-plugin \
--enable-languages=c,c++
fi
@@ -98,8 +94,8 @@ build_gcc()
make -k check || true
- make DESTDIR="$SYSROOT" install-gcc
- make DESTDIR="$SYSROOT" install-target-libgcc
+ make install-gcc
+ make install-target-libgcc
cd "../.." || exit
}