Skip to content

Commit 1c89c74

Browse files
committed
Added sysroot to gdb
1 parent 3e97b69 commit 1c89c74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-scripts/CI/CICTB_32b

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > $(dirname $($TARGET-gcc -print-lib
216216
echo "Building Cross GDB Binaries..."
217217
cd "$DOWNLOADDIR"/gdb-$GDB_VERSION/build || exit
218218
if [ -n "$(ls -A "$DOWNLOADDIR"/gdb-$GDB_VERSION/build)" ]; then rm -rf "$DOWNLOADDIR"/gdb-$GDB_VERSION/build/*; fi #cleanup
219-
../configure --prefix= --target=$TARGET --with-arch=$ARCH --with-fpu=$FPU --with-float=hard
219+
../configure --prefix= --target=$TARGET --with-arch=$ARCH --with-fpu=$FPU --with-float=hard -with-sysroot=/$TARGET/libc --with-build-sysroot="$SYSROOTDIR"
220220
make -s -j$(nproc)
221221
make -s install DESTDIR="$INSTALLDIR"
222222
if [ -n "$(ls -A "$DOWNLOADDIR"/gdb-$GDB_VERSION/build)" ]; then rm -rf "$DOWNLOADDIR"/gdb-$GDB_VERSION/build/*; fi #cleanup

build-scripts/CI/CICTB_64b

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > $(dirname $($TARGET-gcc -print-lib
177177
echo "Building Cross GDB Binaries..."
178178
cd "$DOWNLOADDIR"/gdb-$GDB_VERSION/build || exit
179179
if [ -n "$(ls -A "$DOWNLOADDIR"/gdb-$GDB_VERSION/build)" ]; then rm -rf "$DOWNLOADDIR"/gdb-$GDB_VERSION/build/*; fi
180-
../configure --prefix= --target=$TARGET --with-arch=$ARCH --with-float=hard
180+
../configure --prefix= --target=$TARGET --with-arch=$ARCH --with-float=hard -with-sysroot=/$TARGET/libc --with-build-sysroot="$SYSROOTDIR"
181181
make -s -j$(nproc)
182182
make -s install DESTDIR="$INSTALLDIR"
183183
if [ -n "$(ls -A "$DOWNLOADDIR"/gdb-$GDB_VERSION/build)" ]; then rm -rf "$DOWNLOADDIR"/gdb-$GDB_VERSION/build/*; fi

0 commit comments

Comments
 (0)