From eb94e7abb9edf0e852146dd9b4735ebe4256b3d7 Mon Sep 17 00:00:00 2001 From: Thomas Senyk Date: Thu, 19 Jul 2012 18:39:50 +0200 Subject: Adding cflag -c to configure's --sysroot test. This forces compiler-only (avoid linker). Otherwise fails if linker needs more options. This happens for trimslice using codesourcery toolchain. Change-Id: Iea509bf0f53b888505a5ac0fe15b5705712a2fce Reviewed-by: Thiago Macieira --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 57ce152..c82a7b0 100755 --- a/configure +++ b/configure @@ -3400,7 +3400,7 @@ fi SYSROOT_FLAG= if [ -n "$CFG_SYSROOT" ]; then - if compilerSupportsFlag --sysroot="$CFG_SYSROOT"; then + if compilerSupportsFlag -c --sysroot="$CFG_SYSROOT"; then [ "$OPT_VERBOSE" = "yes" ] && echo "Setting sysroot to: $CFG_SYSROOT" SYSROOT_FLAG="--sysroot=$CFG_SYSROOT" else -- cgit v0.12