]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: Add a DragonFlyBSD target
authorBrad Smith <brad@comstyle.com>
Thu, 8 Oct 2020 05:15:06 +0000 (01:15 -0400)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2020 18:54:18 +0000 (20:54 +0200)
Add a target for DragonFlyBSD 4.3 and above.

INSTALL
Makefile

diff --git a/INSTALL b/INSTALL
index f562a71022e2eb04e8c6754034aa967d68076d0c..0263cf34cf6b6f1d82c35998f6ccd4fec931f70d 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -376,6 +376,7 @@ and assign it to the TARGET variable :
   - linux-musl          for Linux kernel 2.6.28 and above with musl libc
   - solaris             for Solaris 10 and above
   - freebsd             for FreeBSD 10 and above
+  - dragonfly           for DragonFlyBSD 4.3 and above
   - netbsd              for NetBSD
   - osx                 for Mac OS/X
   - openbsd             for OpenBSD 6.3 and above
index 7958b89d67b0902dcbd41d99a8ba72285bd124f4..4aabe34dc7736dd73ea7dcea2d2ada5f905eb4ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -142,8 +142,9 @@ DOCDIR = $(PREFIX)/doc/haproxy
 #### TARGET system
 # Use TARGET=<target_name> to optimize for a specific target OS among the
 # following list (use the default "generic" if uncertain) :
-#    linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, openbsd,
-#    netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, custom
+#    linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, dragonfly,
+#    openbsd, netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic,
+#    custom
 TARGET =
 
 #### TARGET CPU
@@ -371,6 +372,13 @@ ifeq ($(TARGET),freebsd)
     USE_ACCEPT4 USE_CLOSEFROM USE_GETADDRINFO)
 endif
 
+# DragonFlyBSD 4.3 and above
+ifeq ($(TARGET),dragonfly)
+  set_target_defaults = $(call default_opts, \
+    USE_POLL USE_TPROXY USE_LIBCRYPT USE_THREAD USE_CPU_AFFINITY USE_KQUEUE   \
+    USE_ACCEPT4 USE_CLOSEFROM USE_GETADDRINFO)
+endif
+
 # Mac OS/X
 ifeq ($(TARGET),osx)
   set_target_defaults = $(call default_opts, \
@@ -773,8 +781,9 @@ all:
        @echo
        @echo "Please choose the target among the following supported list :"
        @echo
-       @echo "   linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, openbsd, "
-       @echo "   netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, custom"
+       @echo "   linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, dragonfly, "
+       @echo "   iopenbs, netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, "
+       @echo "   custom"
        @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"
@@ -850,8 +859,9 @@ help:
             fi; \
           else \
             echo "TARGET not set, you may pass 'TARGET=xxx' to set one among :";\
-            echo "  linux-glibc, linux-glibc-legacy, solaris, freebsd, netbsd, osx,"; \
-            echo "  openbsd, aix51, aix52, aix72-gcc, cygwin, haiku, generic, custom"; \
+            echo "  linux-glibc, linux-glibc-legacy, solaris, freebsd, dragonfly, netbsd,"; \
+            echo "  osx, openbsd, aix51, aix52, aix72-gcc, cygwin, haiku, generic,"; \
+            echo "  custom"; \
           fi
        $(Q)echo;echo "Enabled features for TARGET '$(TARGET)' (disable with 'USE_xxx=') :"
        $(Q)set -- $(foreach opt,$(patsubst USE_%,%,$(use_opts)),$(if $(USE_$(opt)),$(opt),)); echo "  $$*" | (fmt || cat) 2>/dev/null