From 0daf9be64d6e5ef7c3e2883254d4982120488566 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Wed, 12 Jan 2022 20:20:05 +0100 Subject: --prefix=$SYSROOT --- scripts/setup.sh | 16 ++++++---------- 1 file 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 } -- cgit v1.2.3