summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-18 00:06:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:35 -0500
commit3cddf280da064d53ec2de2c8b30b7902e1b5e515 (patch)
treeef12ebbc8f8ce7bd83bdee7f9b9d8e09287ed33c
parentf4576157edab9d3e39a88342312fc42ba6e59469 (diff)
downloadsamba-3cddf280da064d53ec2de2c8b30b7902e1b5e515.tar.gz
samba-3cddf280da064d53ec2de2c8b30b7902e1b5e515.tar.bz2
samba-3cddf280da064d53ec2de2c8b30b7902e1b5e515.zip
r8532: this miight fix cross compilation for reactos
(This used to be commit 810fa4f762458202adee3f2fd5b13e74eae7781f)
-rw-r--r--source4/build/m4/check_cc.m44
-rw-r--r--source4/heimdal_build/config.mk2
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 251d0a5491..5ca88f5698 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -103,3 +103,7 @@ if test -n "$DEVELOPER_CFLAGS"; then
AC_MSG_WARN([cannot run when cross-compiling]))
CFLAGS="${OLD_CFLAGS}"
fi
+
+# allow for --with-hostcc=gcc
+AC_ARG_WITH(hostcc,[Choose host compiler],[HOSTCC=$withval],[HOSTCC=$CC])
+AC_SUBST(HOSTCC)
diff --git a/source4/heimdal_build/config.mk b/source4/heimdal_build/config.mk
index 6615f81649..2b961701b2 100644
--- a/source4/heimdal_build/config.mk
+++ b/source4/heimdal_build/config.mk
@@ -384,7 +384,7 @@ REQUIRED_SUBSYSTEMS = COMPILE_ET LIBREPLACE
#######################
# Start TARGET HEIMDAL_EXTERNAL
[TARGET::HEIMDAL_EXTERNAL]
-CMD = heimdal_build/build_external.sh "@CC@" "@LEX@" "@YACC@"
+CMD = heimdal_build/build_external.sh "@HOSTCC@" "@LEX@" "@YACC@"
REQUIRED_SUBSYSTEMS = ASN1_COMPILER
# END TARGET HEIMDAL_EXTERNAL
#######################