pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/spidermonkey52 lang/spidermonkey52: fix a build b...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1d628298ec49
branches: trunk
changeset: 390068:1d628298ec49
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Wed Jan 16 02:00:48 2019 +0000
description:
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:
lang/spidermonkey52/Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r b4a8aff1a49c -r 1d628298ec49 lang/spidermonkey52/Makefile
--- a/lang/spidermonkey52/Makefile Wed Jan 16 01:36:12 2019 +0000
+++ b/lang/spidermonkey52/Makefile Wed Jan 16 02:00:48 2019 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index