BuildConf/host - Slight fix to allow scan-build for non 64-bit architectures
authorJohn Hodge <[email protected]>
Sun, 15 Jan 2012 09:53:17 +0000 (17:53 +0800)
committerJohn Hodge <[email protected]>
Sun, 15 Jan 2012 09:53:17 +0000 (17:53 +0800)
BuildConf/host/Makefile.cfg

index 1a28638..2f8488a 100644 (file)
@@ -6,10 +6,13 @@
 SAVED_CC_ := $(CC)
 SAVED_LD_ := $(LD)
 
-include $(ACESSDIR)/BuildConf/x86_64/Makefile.cfg
+include $(ACESSDIR)/BuildConf/$(HOST_ARCH)/Makefile.cfg
 
 OBJDUMP := objdump -S
 
 CC := $(SAVED_CC_)
+ifeq ($(HOST_ARCH),x86)
+CC += -m32
+endif
 LD := $(SAVED_LD_)
 

UCC git Repository :: git.ucc.asn.au