diff options
author | Johann <johannkoenig@google.com> | 2015-10-27 15:38:47 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2015-10-27 15:38:47 -0700 |
commit | a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1 (patch) | |
tree | 2a7a4be73f34f6fde691f6330ad7eeb96edcf88b | |
parent | dc9d36c0a6c749616d5543aa208864d7b0181fea (diff) | |
download | libvpx-a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1.tar libvpx-a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1.tar.gz libvpx-a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1.tar.bz2 libvpx-a6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1.zip |
Only set sysroot when alt_libc finds a directory
Change-Id: Idc0a9adb4fb371272d6c8c98737f66c6cf209e37
-rw-r--r-- | build/make/configure.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh index c592b6385..b01a21c70 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -979,8 +979,10 @@ EOF 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) |