[Bug 196031] [patch] unbreak www/webkit-gtk3 build on FreeBSD 8
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Dec 17 19:47:27 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196031
--- Comment #3 from Don Lewis <truckman at FreeBSD.org> ---
(In reply to Antoine Brodin from comment #2)
> (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
Definitely a bit hackish, but it seems to work. An online search didn't turn
up any info on what the minimum CPU is for atomic_fetch_add_8, but i586 seems
to be sufficient. I suspect that it is pretty unlikely for anyone to want to
use webkit-gtk3 on an i386 or i486.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-gnome
mailing list