Skip to content

Instantly share code, notes, and snippets.

@codebrane
Created June 8, 2013 06:14
Show Gist options
  • Save codebrane/5734242 to your computer and use it in GitHub Desktop.
Save codebrane/5734242 to your computer and use it in GitHub Desktop.
compile readline
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