ports/145020: [patch] devel/msgpack -- unbreak on sparc64
Pietro Cerutti
gahr at FreeBSD.org
Thu Mar 25 08:40:03 UTC 2010
>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 at 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:
More information about the freebsd-ports-bugs
mailing list