From b8b32b81b482f35f7c36ae9dd266028af613c3dc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Nov 2015 17:44:43 +0000 Subject: - Fix selfpipe_read() invocation: the return is int, not char - Easier CROSS_COMPILE support in configure --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 1f9b16e..1fa12db 100755 --- a/configure +++ b/configure @@ -120,7 +120,7 @@ tryldflag () { # Actual script -CC_AUTO="$CC" +CC_AUTO= CFLAGS_AUTO="$CFLAGS" CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -O2 $CPPFLAGS" LDFLAGS_AUTO="$LDFLAGS" @@ -253,6 +253,7 @@ fi # Find a C compiler to use echo "checking for C compiler..." +trycc ${cross}${CC} trycc ${cross}gcc trycc ${cross}c99 trycc ${cross}cc @@ -362,7 +363,7 @@ SYSCLOCK_LIB := ${sysclock_lib} TAINNOW_LIB := ${tainnow_lib} UTIL_LIB := ${util_lib} -CC := $CC_AUTO +CC := ${CC_AUTO##${cross}} CFLAGS := $CFLAGS_AUTO CPPFLAGS := $CPPFLAGS_AUTO LDFLAGS := $LDFLAGS_AUTO -- cgit v1.2.3