diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-02-05 15:13:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-02-05 15:13:42 +0000 |
commit | 1bd5e2b0e6536df1727331cd2e6b4d57403d3450 (patch) | |
tree | 7426538197e49810c0c3335c2344594a726c21e6 /main/nodejs | |
parent | c5268eb8041f204620e7f41a357cdcbcfc7bddd4 (diff) | |
download | aports-1bd5e2b0e6536df1727331cd2e6b4d57403d3450.tar.bz2 aports-1bd5e2b0e6536df1727331cd2e6b4d57403d3450.tar.xz |
main/nodejs: build with mksnapshot
https://github.com/nodejs/build/issues/75#issuecomment-179776626
Diffstat (limited to 'main/nodejs')
-rw-r--r-- | main/nodejs/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
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 <eivind@uggedal.com> 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() { |