summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2014-03-26 14:51:32 -0700
committerJosh Triplett <josh@joshtriplett.org>2014-03-26 23:31:02 -0700
commit0c3824702d3d59d37f8c177d646303f546187683 (patch)
tree1546a27055987b20ef85776cadbdcddd3533f3d6 /configure.ac
parent9946a92af31b30cb7760150d1f8ca6c11b01aeea (diff)
downloadlibffi-0c3824702d3d59d37f8c177d646303f546187683.tar.gz
Always set CC_FOR_TARGET for dejagnu, to make the testsuite respect $CC
This fixes cross-compilation and compilation with CC="gcc -m32".
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 3c1632c..0369b30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,12 +53,11 @@ fi
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -fexceptions"
- touch local.exp
-else
- cat > local.exp <<EOF
+fi
+
+cat > local.exp <<EOF
set CC_FOR_TARGET "$CC"
EOF
-fi
AM_MAINTAINER_MODE