Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 2010 17:46:53 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209886 - head/lib/bind
Message-ID:  <201007101746.o6AHkrGE024449@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sat Jul 10 17:46:53 2010
New Revision: 209886
URL: http://svn.freebsd.org/changeset/base/209886

Log:
  Since powerpc and powerpc64 share an instruction set, bind can and should
  use the 32-bit atomic operations unmodified. Accomplish this by switching
  some MACHINE_ARCH values to MACHINE_CPUARCH.

Modified:
  head/lib/bind/config.mk

Modified: head/lib/bind/config.mk
==============================================================================
--- head/lib/bind/config.mk	Sat Jul 10 17:43:24 2010	(r209885)
+++ head/lib/bind/config.mk	Sat Jul 10 17:46:53 2010	(r209886)
@@ -45,7 +45,7 @@ CFLAGS+=	-DOPENSSL
 CFLAGS+=	-DUSE_MD5
 
 # Endianness
-.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
+.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "sparc64"
 CFLAGS+=	-DWORDS_BIGENDIAN
 .endif
 
@@ -67,7 +67,7 @@ CFLAGS+=	-I${LIB_BIND_DIR}
 .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
 ISC_ATOMIC_ARCH=	x86_32
 .else
-ISC_ATOMIC_ARCH=	${MACHINE_ARCH}
+ISC_ATOMIC_ARCH=	${MACHINE_CPUARCH}
 .endif
 
 # Optional features



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007101746.o6AHkrGE024449>