summaryrefslogtreecommitdiffstats
path: root/lib/bind
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-01-06 21:07:51 +0000
committerimp <imp@FreeBSD.org>2011-01-06 21:07:51 +0000
commitfe1ba87ad17386619bc6fb121fc6e73278f36247 (patch)
tree45322a4e32086213b39d557a165aa2b37e5b29f1 /lib/bind
parent05fad83c136f572f5b49e7dd262b821696222ab7 (diff)
downloadFreeBSD-src-fe1ba87ad17386619bc6fb121fc6e73278f36247.zip
FreeBSD-src-fe1ba87ad17386619bc6fb121fc6e73278f36247.tar.gz
Make this work on big endian MIPS, while not breaking it for small
endian mips. This will also make it work automatically on all future big endian platforms.
Diffstat (limited to 'lib/bind')
-rw-r--r--lib/bind/config.mk10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/bind/config.mk b/lib/bind/config.mk
index 4d9b3d3..0fb5f3e 100644
--- a/lib/bind/config.mk
+++ b/lib/bind/config.mk
@@ -1,6 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
+.include <bsd.endian.mk>
# BIND version number
.if defined(BIND_DIR) && exists(${BIND_DIR}/version)
@@ -45,7 +46,7 @@ CFLAGS+= -DOPENSSL
CFLAGS+= -DUSE_MD5
# Endianness
-.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "sparc64"
+.if ${TARGET_ENDIANNESS} == 4321
CFLAGS+= -DWORDS_BIGENDIAN
.endif
@@ -64,11 +65,7 @@ CFLAGS+= -I${LIB_BIND_DIR}
.endif
# Use the right version of the atomic.h file from lib/isc
-.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
-ISC_ATOMIC_ARCH= x86_32
-.else
-ISC_ATOMIC_ARCH= ${MACHINE_CPUARCH}
-.endif
+ISC_ATOMIC_ARCH=${MACHINE_CPUARCH:S/i386/x86_32/:S/amd64/x86_32/}
# Optional features
.if ${MK_BIND_LARGE_FILE} == "yes"
@@ -121,4 +118,3 @@ CRYPTO_LDADD= -lcrypto
PTHREAD_DPADD= ${LIBPTHREAD}
PTHREAD_LDADD= -lpthread
-
OpenPOWER on IntegriCloud