summaryrefslogtreecommitdiff
path: root/build/make/configure.sh
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2015-10-27 15:38:47 -0700
committerJohann <johannkoenig@google.com>2015-10-27 15:38:47 -0700
commita6f70b42b62b71f3cb0ea3494f14cb1487c9a1f1 (patch)
tree2a7a4be73f34f6fde691f6330ad7eeb96edcf88b /build/make/configure.sh
parentdc9d36c0a6c749616d5543aa208864d7b0181fea (diff)
downloadlibvpx-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
Diffstat (limited to 'build/make/configure.sh')
-rw-r--r--build/make/configure.sh6
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)