Skip to content

Commit 4fa3fd1

Browse files
committed
make binary: allow custom config flags
For example, to cross-compile from my OS X laptop for Raspberry Pi, you would do something like: $ make binary BINARYNAME=node-v`python tools/getnodeversion.py`-linux-arm-pi \ DESTCPU=arm CONFIG_FLAGS="--dest-os=linux"
1 parent 8e37a58 commit 4fa3fd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ tar: $(TARBALL)
278278
$(BINARYTAR): release-only
279279
rm -rf $(BINARYNAME)
280280
rm -rf out/deps out/Release
281-
./configure --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU)
281+
./configure --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU) $(CONFIG_FLAGS)
282282
$(MAKE) install DESTDIR=$(BINARYNAME) V=$(V) PORTABLE=1
283283
cp README.md $(BINARYNAME)
284284
cp LICENSE $(BINARYNAME)

0 commit comments

Comments
 (0)