[asterisk-bugs] [Zaptel 0012056]: HOSTCC not exported by top level Makefile causes makefw compile to fail
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Feb 25 05:12:54 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12056
======================================================================
Reported By: davidw
Assigned To:
======================================================================
Project: Zaptel
Issue ID: 12056
Category: General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Zaptel Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 3874
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 02-24-2008 04:19 CST
Last Modified: 02-25-2008 05:12 CST
======================================================================
Summary: HOSTCC not exported by top level Makefile causes
makefw compile to fail
Description:
The Makefile does not explicitly export HOSTCC. As this is not in the
initial environment, GNU Make does not export it by default. As a result,
the make in the kernel directory, which does not independently include
makeopts, the file that actually includes the definition of HOSTCC,
substitutes a null string for HOSTCC resulting in a command not found when
compiling the, host platform, utiity makefw.
======================================================================
----------------------------------------------------------------------
tzafrir - 02-25-08 05:12
----------------------------------------------------------------------
Thanks for spotting this.
Could you please check the following change (passing HOSTCC explicitly) ?
--- Makefile (revision 3850)
+++ Makefile (working copy)
@@ -164,10 +164,10 @@
KFLAGS+=-DSTANDALONE_ZAPATA
CFLAGS+=-DSTANDALONE_ZAPATA
ifeq ($(BUILDVER),linux24)
-KMAKE = $(MAKE) -C kernel HOTPLUG_FIRMWARE=no \
+KMAKE = $(MAKE) -C kernel HOTPLUG_FIRMWARE=no HOSTCC=$(HOSTCC) \
BUILD_TOPDIR_MODULES="$(BUILD_TOPDIR_MODULES)"
BUILD_SUBDIR_MODULES="$(BUILD_SUBDIR_MODULES)"
else
-KMAKE = $(MAKE) -C $(KSRC) SUBDIRS=$(PWD)/kernel \
+KMAKE = $(MAKE) -C $(KSRC) SUBDIRS=$(PWD)/kernel HOSTCC=$(HOSTCC) \
HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE) KBUILD_OBJ_M="$(KBUILD_OBJ_M)"
endif
KMAKE_INST = $(KMAKE) \
If so: what else do we need to pass from configure's output?
Issue History
Date Modified Username Field Change
======================================================================
02-25-08 05:12 tzafrir Note Added: 0082842
======================================================================
More information about the asterisk-bugs
mailing list