[Bug 196031] [patch] unbreak www/webkit-gtk3 build on FreeBSD 8

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 16 22:52:11 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196031

--- Comment #2 from Antoine Brodin <antoine at FreeBSD.org> ---
(In reply to Don Lewis from comment #0)
> NOTE: When building with gcc from ports on i386, CPUTYPE must be set to
> a value that specifies an architecture that has 8 byte atomic op support
> (i686 or higher?).  If CPUTYPE is not set, the build will fail with an
> undefined reference to __atomic_fetch_add_8.

I think you have to add this kind of hack (untested, not sure about i586):

.if ${ARCH} == i386 && ! ${CFLAGS:M-march=*}
# Needed for __atomic_fetch_add_8
CFLAGS+=       -march=i586
.endif

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list