Fix build on big endian platforms.

breakage reported by Markus Lude
This commit is contained in:
ajacoutot 2012-07-05 10:05:34 +00:00
parent dd9de52d34
commit 2aea829618
2 changed files with 11 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.23 2012/06/22 09:51:22 landry Exp $
# $OpenBSD: Makefile,v 1.24 2012/07/05 10:05:34 ajacoutot Exp $
COMMENT= International Components for Unicode
VERSION= 49.1.2
DISTNAME= icu4c-${VERSION:S/./_/g}-src
PKGNAME= icu4c-${VERSION}
REVISION = 0
REVISION = 1
SO_VERSION= 5.0
.for _lib in icudata icui18n icuio icule iculx icutest icutu icuuc
SHARED_LIBS+= ${_lib} ${SO_VERSION}
@ -47,6 +47,13 @@ MAKE_FLAGS+= SO_TARGET_VERSION=${SO_VERSION} \
SO_TARGET_VERSION_MAJOR=${SO_VERSION:R} \
PKGDATA_INVOKE_OPTS="SO_TARGET_VERSION=${SO_VERSION} SO_TARGET_VERSION_MAJOR=${SO_VERSION:R}"
# XXX U_IS_BIG_ENDIAN is not propagated to the C/C++ files
# http://comments.gmane.org/gmane.comp.tex.texlive.build/1705
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mbe}
CONFIGURE_ENV += CPPFLAGS="-DU_IS_BIG_ENDIAN"
.endif
post-install:
# Bug #7506, #7567 and #7574, libicutest is not installed
${INSTALL_DATA} ${WRKBUILD}/tools/ctestfw/libicutest.a ${PREFIX}/lib/

View File

@ -1,4 +1,5 @@
$OpenBSD: patch-source_common_putilimp_h,v 1.2 2012/07/04 09:03:16 landry Exp $
$OpenBSD: patch-source_common_putilimp_h,v 1.3 2012/07/05 10:05:34 ajacoutot Exp $
hppa doesnt have atomic builtins:
__sync_val_compare_and_swap, __sync_add_and_fetch, __sync_sub_and_fetch
don't assume having GNUC >= 401 implies they're here..