ref: a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1
parent: dc9d36c0a6c749616d5543aa208864d7b0181fea
author: Johann <[email protected]>
date: Tue Oct 27 11:38:47 EDT 2015
Only set sysroot when alt_libc finds a directory Change-Id: Idc0a9adb4fb371272d6c8c98737f66c6cf209e37
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -979,8 +979,10 @@
awk '{ print $1 }' | tail -1`
fi
- add_cflags "--sysroot=${alt_libc}"
- add_ldflags "--sysroot=${alt_libc}"
+ if [ -d "${alt_libc}" ]; then
+ add_cflags "--sysroot=${alt_libc}"
+ add_ldflags "--sysroot=${alt_libc}"
+ fi
# linker flag that routes around a CPU bug in some
# Cortex-A8 implementations (NDK Dev Guide)