Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Make a fat binary for the OS X make pkg.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate authored and isaacs committed Feb 22, 2012
1 parent 7f94b5c commit e60b18b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Expand Up @@ -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 \
Expand Down

0 comments on commit e60b18b

Please sign in to comment.