mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUILD: adjust makefile for AIX 5.1
AIX 5.1 has trouble with ss_family which is __ss_family there. Just remap it in the makefile and provide a new target.
This commit is contained in:
parent
272adea423
commit
50abe303df
10
Makefile
10
Makefile
@ -86,7 +86,7 @@ DOCDIR = $(PREFIX)/doc/haproxy
|
|||||||
# Use TARGET=<target_name> to optimize for a specifc target OS among the
|
# Use TARGET=<target_name> to optimize for a specifc target OS among the
|
||||||
# following list (use the default "generic" if uncertain) :
|
# following list (use the default "generic" if uncertain) :
|
||||||
# generic, linux22, linux24, linux24e, linux26, solaris,
|
# generic, linux22, linux24, linux24e, linux26, solaris,
|
||||||
# freebsd, openbsd, cygwin, custom, aix52
|
# freebsd, openbsd, cygwin, custom, aix51, aix52
|
||||||
TARGET =
|
TARGET =
|
||||||
|
|
||||||
#### TARGET CPU
|
#### TARGET CPU
|
||||||
@ -285,6 +285,13 @@ ifeq ($(TARGET),openbsd)
|
|||||||
USE_KQUEUE = implicit
|
USE_KQUEUE = implicit
|
||||||
USE_TPROXY = implicit
|
USE_TPROXY = implicit
|
||||||
else
|
else
|
||||||
|
ifeq ($(TARGET),aix51)
|
||||||
|
# This is for AIX 5.1
|
||||||
|
USE_POLL = implicit
|
||||||
|
USE_LIBCRYPT = implicit
|
||||||
|
TARGET_CFLAGS = -Dss_family=__ss_family
|
||||||
|
DEBUG_CFLAGS =
|
||||||
|
else
|
||||||
ifeq ($(TARGET),aix52)
|
ifeq ($(TARGET),aix52)
|
||||||
# This is for AIX 5.2 and later
|
# This is for AIX 5.2 and later
|
||||||
USE_POLL = implicit
|
USE_POLL = implicit
|
||||||
@ -300,6 +307,7 @@ ifeq ($(TARGET),cygwin)
|
|||||||
TARGET_CFLAGS = $(if $(filter 1.5.%, $(shell uname -r)), -DUSE_IPV6 -DAF_INET6=23 -DINET6_ADDRSTRLEN=46, )
|
TARGET_CFLAGS = $(if $(filter 1.5.%, $(shell uname -r)), -DUSE_IPV6 -DAF_INET6=23 -DINET6_ADDRSTRLEN=46, )
|
||||||
endif # cygwin
|
endif # cygwin
|
||||||
endif # aix52
|
endif # aix52
|
||||||
|
endif # aix51
|
||||||
endif # openbsd
|
endif # openbsd
|
||||||
endif # osx
|
endif # osx
|
||||||
endif # freebsd
|
endif # freebsd
|
||||||
|
1
README
1
README
@ -30,6 +30,7 @@ and assign it to the TARGET variable :
|
|||||||
- freebsd for FreeBSD 5 to 8.0 (others untested)
|
- freebsd for FreeBSD 5 to 8.0 (others untested)
|
||||||
- osx for Mac OS/X
|
- osx for Mac OS/X
|
||||||
- openbsd for OpenBSD 3.1 to 5.2 (others untested)
|
- openbsd for OpenBSD 3.1 to 5.2 (others untested)
|
||||||
|
- aix51 for AIX 5.1
|
||||||
- aix52 for AIX 5.2
|
- aix52 for AIX 5.2
|
||||||
- cygwin for Cygwin
|
- cygwin for Cygwin
|
||||||
- generic for any other OS.
|
- generic for any other OS.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user