diff options
author | gutteridge <gutteridge@pkgsrc.org> | 2019-01-16 02:00:48 +0000 |
---|---|---|
committer | gutteridge <gutteridge@pkgsrc.org> | 2019-01-16 02:00:48 +0000 |
commit | 5d3434fec1e9b2ab45a69871a48af38f394e094c (patch) | |
tree | fb3dd648f0c1ba1b95f25bd7ca200238205af453 /lang/spidermonkey52/Makefile | |
parent | 3f343ca0cab00a380c2574a2bf931fd3c00a2286 (diff) | |
download | pkgsrc-5d3434fec1e9b2ab45a69871a48af38f394e094c.tar.gz |
lang/spidermonkey52: fix a build breakage on PowerPC
PowerPC (at least, the variants used on hardware typically supported by
pkgsrc) does not offer the gamut of hardware-backed atomic instructions
that relatively recent versions of SpiderMonkey demand. Fall back to
using GCC's libatomic, so this builds and runs on that architecture.
Diffstat (limited to 'lang/spidermonkey52/Makefile')
-rw-r--r-- | lang/spidermonkey52/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/spidermonkey52/Makefile b/lang/spidermonkey52/Makefile index 51d13a7b727..985fd0d8b16 100644 --- a/lang/spidermonkey52/Makefile +++ b/lang/spidermonkey52/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2018/12/09 18:52:34 adam Exp $ +# $NetBSD: Makefile,v 1.12 2019/01/16 02:00:48 gutteridge Exp $ DISTNAME= mozjs-52.7.4 PKGREVISION= 6 @@ -38,6 +38,13 @@ DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat .if ${MACHINE_ARCH} == "i386" # Needs 8 byte atomics. CXXFLAGS+= -march=i586 +.elif ${MACHINE_ARCH} == "powerpc" +# PowerPC doesn't have the necessary hardware-backed atomics, it needs +# GCC's libatomic. pkgsrc's GCC 6 build fails at present on +# NetBSD 8.0/powerpc, but others >= 4.8 work; tested with 4.8.5 and 7.3. +GCC_REQD+= 4.8 +USE_PKGSRC_GCC= yes +USE_PKGSRC_GCC_RUNTIME= yes .endif # fails, does not find hg/git checkout |