summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/NWGNUenvironment.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/NWGNUenvironment.inc b/build/NWGNUenvironment.inc
index d3fa660500..52295608fd 100644
--- a/build/NWGNUenvironment.inc
+++ b/build/NWGNUenvironment.inc
@@ -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