pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey52 spidermonkey52: force...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/02d7c103e22d
branches:  trunk
changeset: 308315:02d7c103e22d
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun May 20 17:45:52 2018 +0000

description:
spidermonkey52: force pass -march=i586 on x86_32.

This fixes a build failure for netbsd/i386, which defaults for -march=i486,
and thus lacks 8 byte atomics required by this package.

Reported & tested by Riccardo Mottola on current-users.

diffstat:

 lang/spidermonkey52/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 0cc92bef0f7e -r 02d7c103e22d lang/spidermonkey52/Makefile
--- a/lang/spidermonkey52/Makefile      Sun May 20 17:30:04 2018 +0000
+++ b/lang/spidermonkey52/Makefile      Sun May 20 17:45:52 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2018/05/16 11:36:36 youri Exp $
+# $NetBSD: Makefile,v 1.5 2018/05/20 17:45:52 maya Exp $
 
 DISTNAME=      mozjs-52.7.4
 PKGREVISION=   1
@@ -33,6 +33,11 @@
 PYTHON_VERSIONS_ACCEPTED=      27
 PYTHON_FOR_BUILD_ONLY=         yes
 
+.if ${MACHINE_ARCH} == "i386"
+# Needs 8 byte atomics.
+CXXFLAGS+=             -march=i586
+.endif
+
 # fails, does not find hg/git checkout
 TEST_TARGET=           check
 



Home | Main Index | Thread Index | Old Index