Undefine ASMNAME/NAME/CNAME before defining them
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Wed, 6 May 2020 22:31:32 +0000 (00:31 +0200)
committerGitHub <noreply@github.com>
Wed, 6 May 2020 22:31:32 +0000 (00:31 +0200)
to avoid redefinition warning when environment variables like CFLAGS are being used (fixes #818)

Makefile.system

index 76d755e..0235460 100644 (file)
@@ -1154,6 +1154,7 @@ KERNELDIR = $(TOPDIR)/kernel/$(ARCH)
 
 include $(TOPDIR)/Makefile.$(ARCH)
 
+CCOMMON_OPT     += -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME
 CCOMMON_OPT    += -DASMNAME=$(FU)$(*F) -DASMFNAME=$(FU)$(*F)$(BU) -DNAME=$(*F)$(BU) -DCNAME=$(*F) -DCHAR_NAME=\"$(*F)$(BU)\" -DCHAR_CNAME=\"$(*F)\"
 
 ifeq ($(CORE), PPC440)