]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
More NetWare build tweaks.
authorGuenter Knauf <fuankg@apache.org>
Wed, 8 Aug 2012 00:41:43 +0000 (00:41 +0000)
committerGuenter Knauf <fuankg@apache.org>
Wed, 8 Aug 2012 00:41:43 +0000 (00:41 +0000)
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

index e60db9236c6eccac7b3a75fd17bf5017c8541012..52295608fdaf9c9a75e0a84ff2b8adc3b12552f4 100644 (file)
@@ -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