]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
NetWare build tweaks.
authorGuenter Knauf <fuankg@apache.org>
Fri, 17 Aug 2012 10:49:59 +0000 (10:49 +0000)
committerGuenter Knauf <fuankg@apache.org>
Fri, 17 Aug 2012 10:49:59 +0000 (10:49 +0000)
mwccnlm: search directory of referencing file first for #includes.
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.
(partly backport of r1371164)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1374196 13f79535-47bb-0310-9956-ffa450edef68

build/NWGNUenvironment.inc

index 24f74a6192d744746e1e1c6ac313f1897ada6c25..bc1fee7927f29157812ff19237180c1ff365c60c 100644 (file)
@@ -230,7 +230,7 @@ endif
 # The default flags are as follows:
 #
 # -c                    compile only, no link
-# -nosyspath            treat #include <...> like #include "..."
+# -gccinc               search directory of referencing file first for #includes
 # -Cpp_exceptions off   disable C++ exceptions
 # -RTTI off             disable C++ run-time typing information
 # -align 4              align on 4 byte bounderies
@@ -238,7 +238,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 -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