From 4fa3fd1cc0eb5a63d8b3644af5b4dc2d6cc0cc86 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Thu, 10 Jan 2013 16:59:09 -0800 Subject: [PATCH] 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" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)