Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2014 22:52:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 196031] [patch] unbreak www/webkit-gtk3 build on FreeBSD 8
Message-ID:  <bug-196031-6497-lGHbYKMidu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-196031-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-196031-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196031

--- Comment #2 from Antoine Brodin <antoine@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196031-6497-lGHbYKMidu>