Created
June 8, 2013 06:14
-
-
Save codebrane/5734242 to your computer and use it in GitHub Desktop.
compile readline
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
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=/Users/alistair/apps/readline-6.2 \ | |
--enable-shared | |
cd shlib | |
sed -e 's/-dynamic/-dynamiclib/' Makefile > Makefile.good | |
mv Makefile.good Makefile | |
cd .. | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment