]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
More NetWare build tweaks.
authorGuenter Knauf <fuankg@apache.org>
Sat, 18 May 2013 20:30:30 +0000 (20:30 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sat, 18 May 2013 20:30:30 +0000 (20:30 +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/branches/2.0.x@1484176 13f79535-47bb-0310-9956-ffa450edef68

build/NWGNUenvironment.inc

index a06cffc082d2858db5a7472637ede187d574944e..cc14e479cf9b47866a35d9e8a544db836a696417 100644 (file)
@@ -229,7 +229,13 @@ endif
 # -proc PII             generate code base on Pentium II instruction set
 # -inst mmx             use MMX extensions (not used)
 
-CFLAGS = -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII
+CFLAGS += -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII
+
+ifdef CC_MAX_ERRORS
+CFLAGS += -maxerrors $(CC_MAX_ERRORS)
+else
+CFLAGS += -maxerrors 1
+endif
 
 ifeq "$(REQUIRE_PROTOTYPES)" "1"
 CFLAGS += -r