Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2015 18:51:27 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r388126 - head/devel/icu
Message-ID:  <201505311851.t4VIpRhM009313@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sun May 31 18:51:27 2015
New Revision: 388126
URL: https://svnweb.freebsd.org/changeset/ports/388126

Log:
  Fix builds on big-endian architectures by declaring a CPPFLAG used internally
  by the source to handle big vs little endianess.
  
  PR:		199471

Modified:
  head/devel/icu/Makefile

Modified: head/devel/icu/Makefile
==============================================================================
--- head/devel/icu/Makefile	Sun May 31 17:48:59 2015	(r388125)
+++ head/devel/icu/Makefile	Sun May 31 18:51:27 2015	(r388126)
@@ -47,6 +47,11 @@ PLIST_SUB+=	ICUMAJOR=${ICUMAJOR} ICUVER=
 THREADS_CONFIGURE_ON=	--enable-weak-threads
 THREADS_CONFIGURE_OFF=	--enable-threads=no
 
+# For all Bigendian systems, set CPPFLAGS so that icu compiles and checks correctly
+.if ${ARCH} == "mips" || ${ARCH} == "mips64" || ${ARCH} == "sparc64" || ${ARCH} == "powerpc" || ${ARCH} == "powerpc64"
+CPPFLAGS+=	-DU_IS_BIG_ENDIAN=1
+.endif
+
 .include <bsd.port.options.mk>
 
 post-patch:



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