Skip to content

Commit

Permalink
main/nodejs: build with mksnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ncopa committed Feb 5, 2016
1 parent c5268eb commit 1bd5e2b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions main/nodejs/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# Maintainer: Eivind Uggedal <[email protected]>
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"
Expand All @@ -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() {
Expand Down

0 comments on commit 1bd5e2b

Please sign in to comment.