Date: Thu, 25 Mar 2010 09:38:39 +0100 (CET) From: Pietro Cerutti <gahr@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/145020: [patch] devel/msgpack -- unbreak on sparc64 Message-ID: <201003250838.o2P8cdvu017530@tucana.bfh.ch> Resent-Message-ID: <201003250840.o2P8e2ck010792@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 145020 >Category: ports >Synopsis: [patch] devel/msgpack -- unbreak on sparc64 >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 25 08:40:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 9.0-CURRENT sparc64 >Organization: The FreeBSD Project >Environment: System: FreeBSD tucana.bfh.ch 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Dec 3 19:51:47 CET 2009 root@tucana.bfh.ch:/usr/obj/usr/src/sys/TUCANA sparc64 >Description: GCC builtin __sync_* atomic operations are supported on sparc64 starting from the 4.3 series. >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/msgpack/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 22 Mar 2010 06:00:34 -0000 1.5 +++ Makefile 25 Mar 2010 08:36:41 -0000 @@ -17,17 +17,19 @@ GNU_CONFIGURE= yes USE_LDCONFIG= yes -USE_GCC= 4.2+ - -.if ${MACHINE_ARCH} == "i386" -# Mayby not working on i386/i486/i586... -CONFIGURE_ARGS= CFLAGS="${CFLAGS} -march=i686" CXXFLAGS="${CXXFLAGS} -march=i686" -.endif .include <bsd.port.pre.mk> .if ${ARCH} == "sparc64" -BROKEN= Does not configure on sparc64: sync_* atomic operations are not supported +# required for __sync _* atomic operations on sparc +USE_GCC= 4.3+ +.else +USE_GCC= 4.2+ +.endif + +.if ${ARCH} == "i386" +# Mayby not working on i386/i486/i586... +CONFIGURE_ARGS= CFLAGS="${CFLAGS} -march=i686" CXXFLAGS="${CXXFLAGS} -march=i686" .endif .include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003250838.o2P8cdvu017530>