File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ mkdir -p "$SYSROOTDIR"/usr/lib
198
198
echo " Building binutils..."
199
199
if [ -n " $( ls -A " $DOWNLOADDIR " /binutils-$BINUTILS_VERSION /build) " ]; then rm -rf " $DOWNLOADDIR " /binutils-$BINUTILS_VERSION /build/* ; fi
200
200
cd " $DOWNLOADDIR " /binutils-$BINUTILS_VERSION /build || exit
201
- ../configure --target=$TARGET --prefix= --with-arch=$ARCH --disable-multilib
201
+ ../configure --target=$TARGET --prefix= --with-arch=$ARCH --with-sysroot=/ $TARGET /libc --with-build-sysroot= " $SYSROOTDIR " -- disable-multilib
202
202
make -s -j$( nproc)
203
203
make -s install DESTDIR=" $INSTALLDIR "
204
204
if [ -n " $( ls -A " $DOWNLOADDIR " /binutils-$BINUTILS_VERSION /build) " ]; then rm -rf " $DOWNLOADDIR " /binutils-$BINUTILS_VERSION /build/* ; fi
@@ -211,7 +211,7 @@ make -s -j$(nproc) all-gcc
211
211
make -s install-gcc DESTDIR=" $INSTALLDIR "
212
212
if [ -n " $( ls -A " $DOWNLOADDIR " /glibc-$GLIBC_VERSION /build) " ]; then rm -rf " $DOWNLOADDIR " /glibc-$GLIBC_VERSION /build/* ; fi
213
213
cd " $DOWNLOADDIR " /glibc-$GLIBC_VERSION /build || exit
214
- ../configure --prefix=/usr --build=" $MACHTYPE " --host=$TARGET --target=$TARGET --with-arch=$ARCH --with-headers=" $SYSROOTDIR " /usr/include --with-lib=" $SYSROOTDIR " /usr/lib --disable-multilib libc_cv_forced_unwind=yes
214
+ ../configure --prefix=/usr --build=" $MACHTYPE " --host=$TARGET --target=$TARGET --with-arch=$ARCH --with-sysroot=/ $TARGET /libc --with-build-sysroot= " $SYSROOTDIR " --with- headers=" $SYSROOTDIR " /usr/include --with-lib=" $SYSROOTDIR " /usr/lib --disable-multilib libc_cv_forced_unwind=yes
215
215
make -s install-bootstrap-headers=yes install-headers DESTDIR=" $SYSROOTDIR "
216
216
make -s -j$( nproc) csu/subdir_lib
217
217
install csu/crt1.o csu/crti.o csu/crtn.o " $SYSROOTDIR " /usr/lib
You can’t perform that action at this time.
0 commit comments