From 28e34ea140028da9ca845ebe06f5a3a6fc633c83 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Wed, 2 Feb 2011 03:29:54 +0000 Subject: 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. --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'makefile') 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 += \ -- cgit v1.2.3