diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2013-01-10 16:59:09 -0800 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2013-01-10 17:05:14 -0800 |
commit | 4fa3fd1cc0eb5a63d8b3644af5b4dc2d6cc0cc86 (patch) | |
tree | 0afe63627701a2280ea8155f85e1bdff34702952 /Makefile | |
parent | 8e37a589a62eaea16e729a1514ed4a28a4a04788 (diff) | |
download | node-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"
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |