Created
October 20, 2010 01:51
-
-
Save lantrix/635607 to your computer and use it in GitHub Desktop.
Compile readline 5 as 64bit on Leopard
This file contains hidden or 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
tar zxvf readline-5.2.tar.gz | |
cd readline-5.2 | |
export MACOSX_DEPLOYMENT_TARGET=10.5 | |
export CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" | |
export CCFLAGS="-arch x86_64 -g -Os -pipe" | |
export CXXFLAGS="-arch x86_64 -g -Os -pipe" | |
export LDFLAGS="-arch x86_64 -bind_at_load" | |
./configure --prefix=/usr/local | |
cd shlib | |
sed -e 's/-dynamic/-dynamiclib/' Makefile > Makefile.good | |
mv Makefile.good Makefile | |
cd .. | |
make && sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment