summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2011-02-02 03:29:54 +0000
committerGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2011-02-02 03:29:54 +0000
commit28e34ea140028da9ca845ebe06f5a3a6fc633c83 (patch)
treeb6a3031ed20027a22651798401747371082973cc /makefile
parentfdd736acefcd358e3ac3b5b3141ddaec7fd3f3e2 (diff)
NetBSD support [Thomas Klausner]
Not for whatsnew: I added -Wno-conversion unconditionally to disable the warnings Thomas reported. That setting is the default for GCC out-of-the-box but apparently not on NetBSD. As far as I know it shouldn't cause a problem with any GCC version back to at least 4.0.0 so we're safe even on PPC OSX, but do let me know if hilarity ensues.
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index 7190b0ec8d8..95a0655310b 100644
--- a/makefile
+++ b/makefile
@@ -86,6 +86,9 @@ endif
ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
TARGETOS = freebsd
endif
+ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD)
+TARGETOS = netbsd
+endif
ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
TARGETOS = openbsd
endif
@@ -470,7 +473,8 @@ CCOMFLAGS += \
-Wundef \
-Wformat-security \
-Wwrite-strings \
- -Wno-sign-compare
+ -Wno-sign-compare \
+ -Wno-conversion
# warnings only applicable to C compiles
CONLYFLAGS += \