diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-30 17:46:08 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-30 17:46:08 +0000 |
commit | 9102493c4eded51c3fa3d898f3a1c87bbd332c84 (patch) | |
tree | 0423772032100d59733772835b4b896bf8e66e40 /configure | |
parent | 3293c827a23483159649b0ad3da494e759f7a18c (diff) | |
download | s6-dns-9102493c4eded51c3fa3d898f3a1c87bbd332c84.tar.xz |
Easier CROSS_COMPILE support in configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |