pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/spidermonkey52



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Wed Jan 16 02:00:49 UTC 2019

Modified Files:
        pkgsrc/lang/spidermonkey52: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/spidermonkey52/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/spidermonkey52/Makefile
diff -u pkgsrc/lang/spidermonkey52/Makefile:1.11 pkgsrc/lang/spidermonkey52/Makefile:1.12
--- pkgsrc/lang/spidermonkey52/Makefile:1.11    Sun Dec  9 18:52:34 2018
+++ pkgsrc/lang/spidermonkey52/Makefile Wed Jan 16 02:00:48 2019
@@ -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]*:..
 .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