ref: 6f498956e594c2567e1c8beeecc79e21e5c05613
parent: bd45af8bbbd3f6c79bc2d473bce6677200a28c9b
parent: a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1
author: Johann Koenig <[email protected]>
date: Wed Oct 28 15:16:42 EDT 2015
Merge "Only set sysroot when alt_libc finds a directory"
--- 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)