pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/spidermonkey52 spidermonkey52: revamp PowerPC bui...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a5ce4463ede8
branches: trunk
changeset: 440881:a5ce4463ede8
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Wed Oct 21 02:07:12 2020 +0000
description:
spidermonkey52: revamp PowerPC build fix
Swap my original fix for the newer and better means of linking against
devel/libatomic introduced by maya@ and he@.
diffstat:
lang/spidermonkey52/Makefile | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r fa1ef30f09ea -r a5ce4463ede8 lang/spidermonkey52/Makefile
--- a/lang/spidermonkey52/Makefile Wed Oct 21 00:18:25 2020 +0000
+++ b/lang/spidermonkey52/Makefile Wed Oct 21 02:07:12 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2020/08/31 18:09:53 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2020/10/21 02:07:12 gutteridge Exp $
DISTNAME= mozjs-52.7.4
PKGREVISION= 14
@@ -43,11 +43,6 @@
.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. Tested with GCC 4.8.5 and 7.3 on NetBSD 8.0/powerpc.
-USE_PKGSRC_GCC= yes
-USE_PKGSRC_GCC_RUNTIME= yes
.endif
# fails, does not find hg/git checkout
@@ -59,6 +54,12 @@
post-install:
${RM} ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
+# 64 bit atomics
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
.include "../../devel/nspr/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/tool.mk"
Home |
Main Index |
Thread Index |
Old Index