Skip to content

Instantly share code, notes, and snippets.

@lantrix
Created October 20, 2010 01:51
Show Gist options
  • Save lantrix/635607 to your computer and use it in GitHub Desktop.
Save lantrix/635607 to your computer and use it in GitHub Desktop.
Compile readline 5 as 64bit on Leopard
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