Created
June 13, 2011 01:46
-
-
Save sneak/1022215 to your computer and use it in GitHub Desktop.
build zeromq fat binary (32/64, no ppc sorry) on osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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