From ae201ce6e6dccbe65e4c0938eb7035d979bec986 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Wed, 8 Aug 2012 00:41:43 +0000 Subject: [PATCH] More NetWare build tweaks. Make use of CFLAGS from environment. Added default maxerrors value 1 so that the compiler breaks after 1st error; can be overwritten with CC_MAX_ERRORS var. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370616 13f79535-47bb-0310-9956-ffa450edef68 --- build/NWGNUenvironment.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/NWGNUenvironment.inc b/build/NWGNUenvironment.inc index e60db9236c6..52295608fda 100644 --- a/build/NWGNUenvironment.inc +++ b/build/NWGNUenvironment.inc @@ -238,7 +238,13 @@ endif # -proc PII generate code base on Pentium II instruction set # -inst mmx use MMX extensions (Not used) -CFLAGS = -c -w nocmdline -gccinc -Cpp_exceptions off -RTTI off -align 4 -proc PII +CFLAGS += -c -w nocmdline -gccinc -Cpp_exceptions off -RTTI off -align 4 -proc PII + +ifdef CC_MAX_ERRORS +CFLAGS += -maxerrors $(CC_MAX_ERRORS) +else +CFLAGS += -maxerrors 1 +endif ifeq "$(REQUIRE_PROTOTYPES)" "1" CFLAGS += -r -- 2.47.2