Skip to content

Instantly share code, notes, and snippets.

@sneak
Created June 13, 2011 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneak/1022215 to your computer and use it in GitHub Desktop.
Save sneak/1022215 to your computer and use it in GitHub Desktop.
build zeromq fat binary (32/64, no ppc sorry) on osx
#!/bin/bash
cd /usr/local/src
if [ ! -e zeromq-2.1.7.tar.gz ]; then
curl -O http://download.zeromq.org/zeromq-2.1.7.tar.gz
fi
#export FLAGS="-arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc"
export FLAGS="-arch i386 -arch x86_64"
export CFLAGS="$FLAGS"
export CXXFLAGS="$FLAGS"
cd /usr/local/src
rm -rf zeromq-2.1.7
tar zxf zeromq-2.1.7.tar.gz
cd zeromq-2.1.7
./autogen.sh
./configure --disable-dependency-tracking --prefix=/usr
make -j4
file src/.libs/*.dylib
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment