From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Filippov Date: Wed, 20 Aug 2014 21:42:09 +0400 Subject: [U-Boot] [PATCH 4/8] Makefile: allow overriding '-ansi' in LDPPFLAGS In-Reply-To: <1408556533-22433-1-git-send-email-jcmvbkbc@gmail.com> References: <1408556533-22433-1-git-send-email-jcmvbkbc@gmail.com> Message-ID: <1408556533-22433-5-git-send-email-jcmvbkbc@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de xtensa linker script cannot be preprocessed with -ansi option specified, so xtensa needs a way to override it. Signed-off-by: Max Filippov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 666d291..344492f 100644 --- a/Makefile +++ b/Makefile @@ -209,6 +209,7 @@ HOSTCXXFLAGS = -O2 ifeq ($(HOSTOS),cygwin) HOSTCFLAGS += -ansi endif +LDPPFLAGS += -ansi # Mac OS X / Darwin's C preprocessor is Apple specific. It # generates numerous errors and warnings. We want to bypass it @@ -1121,7 +1122,7 @@ depend dep: # --------------------------------------------------------------------------- quiet_cmd_cpp_lds = LDS $@ -cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \ +cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) \ -D__ASSEMBLY__ -x assembler-with-cpp -P -o $@ $< u-boot.lds: $(LDSCRIPT) prepare FORCE -- 1.8.1.4