mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
BUILD: Add a DragonFlyBSD target
Add a target for DragonFlyBSD 4.3 and above.
This commit is contained in:
parent
465dc7d63f
commit
382001b46b
1
INSTALL
1
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
|
- linux-musl for Linux kernel 2.6.28 and above with musl libc
|
||||||
- solaris for Solaris 10 and above
|
- solaris for Solaris 10 and above
|
||||||
- freebsd for FreeBSD 10 and above
|
- freebsd for FreeBSD 10 and above
|
||||||
|
- dragonfly for DragonFlyBSD 4.3 and above
|
||||||
- netbsd for NetBSD
|
- netbsd for NetBSD
|
||||||
- osx for Mac OS/X
|
- osx for Mac OS/X
|
||||||
- openbsd for OpenBSD 6.3 and above
|
- openbsd for OpenBSD 6.3 and above
|
||||||
|
22
Makefile
22
Makefile
@ -142,8 +142,9 @@ DOCDIR = $(PREFIX)/doc/haproxy
|
|||||||
#### TARGET system
|
#### TARGET system
|
||||||
# Use TARGET=<target_name> to optimize for a specific target OS among the
|
# Use TARGET=<target_name> to optimize for a specific target OS among the
|
||||||
# following list (use the default "generic" if uncertain) :
|
# following list (use the default "generic" if uncertain) :
|
||||||
# linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, openbsd,
|
# linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, dragonfly,
|
||||||
# netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, custom
|
# openbsd, netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic,
|
||||||
|
# custom
|
||||||
TARGET =
|
TARGET =
|
||||||
|
|
||||||
#### TARGET CPU
|
#### TARGET CPU
|
||||||
@ -371,6 +372,13 @@ ifeq ($(TARGET),freebsd)
|
|||||||
USE_ACCEPT4 USE_CLOSEFROM USE_GETADDRINFO)
|
USE_ACCEPT4 USE_CLOSEFROM USE_GETADDRINFO)
|
||||||
endif
|
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
|
# Mac OS/X
|
||||||
ifeq ($(TARGET),osx)
|
ifeq ($(TARGET),osx)
|
||||||
set_target_defaults = $(call default_opts, \
|
set_target_defaults = $(call default_opts, \
|
||||||
@ -773,8 +781,9 @@ all:
|
|||||||
@echo
|
@echo
|
||||||
@echo "Please choose the target among the following supported list :"
|
@echo "Please choose the target among the following supported list :"
|
||||||
@echo
|
@echo
|
||||||
@echo " linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, openbsd, "
|
@echo " linux-glibc, linux-glibc-legacy, linux-musl, solaris, freebsd, dragonfly, "
|
||||||
@echo " netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, custom"
|
@echo " iopenbs, netbsd, cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, "
|
||||||
|
@echo " custom"
|
||||||
@echo
|
@echo
|
||||||
@echo "Use \"generic\" if you don't want any optimization, \"custom\" if you"
|
@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"
|
@echo "want to precisely tweak every option, or choose the target which"
|
||||||
@ -850,8 +859,9 @@ help:
|
|||||||
fi; \
|
fi; \
|
||||||
else \
|
else \
|
||||||
echo "TARGET not set, you may pass 'TARGET=xxx' to set one among :";\
|
echo "TARGET not set, you may pass 'TARGET=xxx' to set one among :";\
|
||||||
echo " linux-glibc, linux-glibc-legacy, solaris, freebsd, netbsd, osx,"; \
|
echo " linux-glibc, linux-glibc-legacy, solaris, freebsd, dragonfly, netbsd,"; \
|
||||||
echo " openbsd, aix51, aix52, aix72-gcc, cygwin, haiku, generic, custom"; \
|
echo " osx, openbsd, aix51, aix52, aix72-gcc, cygwin, haiku, generic,"; \
|
||||||
|
echo " custom"; \
|
||||||
fi
|
fi
|
||||||
$(Q)echo;echo "Enabled features for TARGET '$(TARGET)' (disable with 'USE_xxx=') :"
|
$(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
|
$(Q)set -- $(foreach opt,$(patsubst USE_%,%,$(use_opts)),$(if $(USE_$(opt)),$(opt),)); echo " $$*" | (fmt || cat) 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user