summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2013-01-10 16:59:09 -0800
committerNathan Rajlich <nathan@tootallnate.net>2013-01-10 17:05:14 -0800
commit4fa3fd1cc0eb5a63d8b3644af5b4dc2d6cc0cc86 (patch)
tree0afe63627701a2280ea8155f85e1bdff34702952
parent8e37a589a62eaea16e729a1514ed4a28a4a04788 (diff)
downloadnode-new-4fa3fd1cc0eb5a63d8b3644af5b4dc2d6cc0cc86.tar.gz
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"
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d02a64a052..0ebc14fc4a 100644
--- a/Makefile
+++ b/Makefile
@@ -278,7 +278,7 @@ tar: $(TARBALL)
$(BINARYTAR): release-only
rm -rf $(BINARYNAME)
rm -rf out/deps out/Release
- ./configure --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU)
+ ./configure --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU) $(CONFIG_FLAGS)
$(MAKE) install DESTDIR=$(BINARYNAME) V=$(V) PORTABLE=1
cp README.md $(BINARYNAME)
cp LICENSE $(BINARYNAME)