Commit 9404c871 authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

build-gdbserver.sh: don't copy platforms symlink

If the previous invokation of gen-platforms.sh didn't use
the --fast-copy option, then build-gdbserver.sh tried to copy
symlinks into its build root (/tmp/ndk-$USER/build/gdbserver/sysroot)
and most headers there were dangling symlink.

As a consequence, the build failed because the sysroot files were
invalid. This patch ensures we do not copy the symlinks but the
files that they actually reference instead, fixing the issue.

Change-Id: I87c7d4dcdcc68eaee66f3518b9e7a2fae9e48c9e
parent 1937c893
......@@ -141,7 +141,7 @@ run mkdir -p "$BUILD_OUT"
# Copy the sysroot to a temporary build directory
BUILD_SYSROOT="$BUILD_OUT/sysroot"
run mkdir -p "$BUILD_SYSROOT"
run cp -rp "$SYSROOT/*" "$BUILD_SYSROOT"
run cp -rH "$SYSROOT/*" "$BUILD_SYSROOT"
# Remove libthread_db to ensure we use exactly the one we want.
rm -f $BUILD_SYSROOT/usr/lib/libthread_db*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment