Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/8bca6cf28bf5162e0e4bb...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/8bca6cf28bf5162e0e4bb89...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/8bca6cf28bf5162e0e4bb890c...
The branch, master has been updated
via 8bca6cf28bf5162e0e4bb890c44b1ac1be204400 (commit)
from 05b9baadbc34d9900195caf02c20a8b18f11b3a5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=8bca6cf28bf5162e0e4...
commit 8bca6cf28bf5162e0e4bb890c44b1ac1be204400
Author: Vincent Sanders <vince(a)kyllikki.org>
Commit: Vincent Sanders <vince(a)kyllikki.org>
correctly setup feature flags
diff --git a/frontends/monkey/Makefile b/frontends/monkey/Makefile
index 86f1d91..27d6610 100644
--- a/frontends/monkey/Makefile
+++ b/frontends/monkey/Makefile
@@ -9,20 +9,27 @@
CWARNFLAGS += -Werror
-CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
- -D_BSD_SOURCE \
- -D_DEFAULT_SOURCE \
- -D_XOPEN_SOURCE=700 \
- -D_POSIX_C_SOURCE=200809L \
- -D_NETBSD_SOURCE \
+CFLAGS += -std=c99 \
+ -Dmonkey -Dnsmonkey -g \
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"
LDFLAGS += -lm
# ---------------------------------------------------------------------------
-# Windows flag setup
+# HOST specific feature flags
# ---------------------------------------------------------------------------
+# enable POSIX and XSI features.
+# everywhere but freebsd where the default set already has them enabled
+ifneq ($(HOST),FreeBSD)
+ CFLAGS += -D_POSIX_C_SOURCE=200809L \
+ -D_XOPEN_SOURCE=700 \
+ -D_BSD_SOURCE \
+ -D_DEFAULT_SOURCE \
+ -D_NETBSD_SOURCE
+endif
+
+# Windows flag setup
ifeq ($(HOST),Windows_NT)
CFLAGS += -U__STRICT_ANSI__
endif
-----------------------------------------------------------------------
Summary of changes:
frontends/monkey/Makefile | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/frontends/monkey/Makefile b/frontends/monkey/Makefile
index 86f1d91..27d6610 100644
--- a/frontends/monkey/Makefile
+++ b/frontends/monkey/Makefile
@@ -9,20 +9,27 @@
CWARNFLAGS += -Werror
-CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
- -D_BSD_SOURCE \
- -D_DEFAULT_SOURCE \
- -D_XOPEN_SOURCE=700 \
- -D_POSIX_C_SOURCE=200809L \
- -D_NETBSD_SOURCE \
+CFLAGS += -std=c99 \
+ -Dmonkey -Dnsmonkey -g \
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"
LDFLAGS += -lm
# ---------------------------------------------------------------------------
-# Windows flag setup
+# HOST specific feature flags
# ---------------------------------------------------------------------------
+# enable POSIX and XSI features.
+# everywhere but freebsd where the default set already has them enabled
+ifneq ($(HOST),FreeBSD)
+ CFLAGS += -D_POSIX_C_SOURCE=200809L \
+ -D_XOPEN_SOURCE=700 \
+ -D_BSD_SOURCE \
+ -D_DEFAULT_SOURCE \
+ -D_NETBSD_SOURCE
+endif
+
+# Windows flag setup
ifeq ($(HOST),Windows_NT)
CFLAGS += -U__STRICT_ANSI__
endif
--
NetSurf Browser