From e60b18bbdf1b25fdf4f438fa424fea11f31b3eff Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Wed, 22 Feb 2012 14:03:22 -0800 Subject: [PATCH] Make a fat binary for the OS X `make pkg`. --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 693accde70..791383e930 100644 --- a/Makefile +++ b/Makefile @@ -151,9 +151,19 @@ PKGDIR=out/dist-osx pkg: $(PKG) $(PKG): - -rm -rf $(PKGDIR) - ./configure --prefix=$(PKGDIR)/usr/local --without-snapshot + rm -rf $(PKGDIR) + rm -rf out/deps out/Release + ./configure --prefix=$(PKGDIR)/32/usr/local --without-snapshot --dest-cpu=ia32 $(MAKE) install + rm -rf out/deps out/Release + ./configure --prefix=$(PKGDIR)/usr/local --without-snapshot --dest-cpu=x64 + $(MAKE) install + lipo $(PKGDIR)/32/usr/local/bin/node \ + $(PKGDIR)/usr/local/bin/node \ + -output $(PKGDIR)/usr/local/bin/node-universal \ + -create + mv $(PKGDIR)/usr/local/bin/node-universal $(PKGDIR)/usr/local/bin/node + rm -rf $(PKGDIR)/32 $(packagemaker) \ --id "org.nodejs.NodeJS-$(VERSION)" \ --doc tools/osx-pkg.pmdoc \