From 1bd5e2b0e6536df1727331cd2e6b4d57403d3450 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 5 Feb 2016 15:13:42 +0000 Subject: main/nodejs: build with mksnapshot https://github.com/nodejs/build/issues/75#issuecomment-179776626 --- main/nodejs/APKBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'main') diff --git a/main/nodejs/APKBUILD b/main/nodejs/APKBUILD index 8ad6bea33e..599a168d40 100644 --- a/main/nodejs/APKBUILD +++ b/main/nodejs/APKBUILD @@ -2,13 +2,14 @@ # Maintainer: Eivind Uggedal pkgname=nodejs pkgver=4.2.6 -pkgrel=0 +pkgrel=1 pkgdesc='Evented I/O for V8 javascript' url='http://nodejs.org/' arch='all' license='MIT' +# gold is needed for mksnapshot makedepends="$depends_dev python openssl-dev zlib-dev libuv-dev - linux-headers paxmark" + linux-headers paxmark binutils-gold" subpackages="$pkgname-dev $pkgname-doc" source="http://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz issue-4221.patch" @@ -32,8 +33,11 @@ build() { --shared-libuv \ $_FPU \ --shared-openssl \ - --without-snapshot || return 1 - make || return 1 + || return 1 + # we need run mksnapshot at build time so paxmark it early + make -C out mksnapshot BUILDTYPE=Release \ + && paxmark -m out/Release/mksnapshot \ + && make || return 1 } package() { -- cgit v1.2.3