diff options
author | 2011-02-02 03:29:54 +0000 | |
---|---|---|
committer | 2011-02-02 03:29:54 +0000 | |
commit | 28e34ea140028da9ca845ebe06f5a3a6fc633c83 (patch) | |
tree | b6a3031ed20027a22651798401747371082973cc /makefile | |
parent | fdd736acefcd358e3ac3b5b3141ddaec7fd3f3e2 (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-- | makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 += \ |