r8308: use the configured C compiler, instead of forcing gcc in external heimdal...
authorAndrew Tridgell <tridge@samba.org>
Mon, 11 Jul 2005 02:52:15 +0000 (02:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:20:04 +0000 (13:20 -0500)
(This used to be commit 39c6cf91fb75dc5d7d14922f70b8be8dc15169e1)

source4/heimdal_build/build_external.sh
source4/heimdal_build/config.mk

index c56e9b09bdb633d0e1488c517c26ca6f895d6624..355facc6dda1c34538a12339d0364093f0d5b7f8 100755 (executable)
@@ -3,6 +3,7 @@
 # build generated asn1, et and flex files in heimdal/ tree
 # tridge@samba.org, June 2005
 
+CC=shift
 TOP=`pwd`
 ASN1_COMPILE=$TOP/bin/asn1_compile
 ET_COMPILE=$TOP/bin/compile_et
@@ -10,7 +11,6 @@ ET_COMPILE=$TOP/bin/compile_et
 # we need to substitute these correctly based on configure output
 FLEX=flex
 BISON=bison
-CC=gcc
 
 build_asn1() {
     f=$1
index 45b82672e4eca2b103be1489e6b329407e772161..aca4589ffe29d7dfd55adfcf86ec0ce8c1b17152 100644 (file)
@@ -364,7 +364,7 @@ REQUIRED_SUBSYSTEMS = COMPILE_ET LIBREPLACE
 #######################
 # Start TARGET HEIMDAL_EXTERNAL
 [TARGET::HEIMDAL_EXTERNAL]
-CMD = heimdal_build/build_external.sh
+CMD = heimdal_build/build_external.sh $(CC)
 REQUIRED_SUBSYSTEMS = ASN1_COMPILER
 # END TARGET HEIMDAL_EXTERNAL
 #######################