54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
$NetBSD: patch-aa,v 1.3 2013/04/17 19:55:37 morr Exp $
|
|
|
|
Add support for NetBSD.
|
|
|
|
--- Makefile.orig 2013-04-03 00:33:32.000000000 +0000
|
|
+++ Makefile
|
|
@@ -73,7 +73,7 @@ DOCDIR = $(PREFIX)/doc/haproxy
|
|
# Use TARGET=<target_name> to optimize for a specifc target OS among the
|
|
# following list (use the default "generic" if uncertain) :
|
|
# generic, linux22, linux24, linux24e, linux26, solaris,
|
|
-# freebsd, openbsd, cygwin, custom, aix52
|
|
+# freebsd, netbsd, openbsd, cygwin, custom, aix52
|
|
TARGET =
|
|
|
|
#### TARGET CPU
|
|
@@ -91,7 +91,6 @@ ARCH =
|
|
|
|
#### Toolchain options.
|
|
# GCC is normally used both for compiling and linking.
|
|
-CC = gcc
|
|
LD = $(CC)
|
|
|
|
#### Debug flags (typically "-g").
|
|
@@ -252,6 +251,12 @@ ifeq ($(TARGET),osx)
|
|
USE_TPROXY = implicit
|
|
USE_LIBCRYPT = implicit
|
|
else
|
|
+ifeq ($(TARGET),netbsd)
|
|
+ # This is for NetBSD
|
|
+ USE_POLL = implicit
|
|
+ USE_KQUEUE = implicit
|
|
+ USE_TPROXY = implicit
|
|
+else
|
|
ifeq ($(TARGET),openbsd)
|
|
# This is for OpenBSD >= 3.0
|
|
USE_POLL = implicit
|
|
@@ -274,6 +279,7 @@ ifeq ($(TARGET),cygwin)
|
|
endif # cygwin
|
|
endif # aix52
|
|
endif # openbsd
|
|
+endif # netbsd
|
|
endif # osx
|
|
endif # freebsd
|
|
endif # solaris
|
|
@@ -510,7 +516,7 @@ all:
|
|
@echo "Please choose the target among the following supported list :"
|
|
@echo
|
|
@echo " linux2628, linux26, linux24, linux24e, linux22, solaris"
|
|
- @echo " freebsd, openbsd, cygwin, custom, generic"
|
|
+ @echo " freebsd, netbsd, openbsd, cygwin, custom, generic, aix52"
|
|
@echo
|
|
@echo "Use \"generic\" if you don't want any optimization, \"custom\" if you"
|
|
@echo "want to precisely tweak every option, or choose the target which"
|