Skip to content

Instantly share code, notes, and snippets.

@baburdick
Created October 7, 2011 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baburdick/1271615 to your computer and use it in GitHub Desktop.
Save baburdick/1271615 to your computer and use it in GitHub Desktop.
Mac OS X Lion, MacPorts, and rvm installs
export rvm_path="$HOME/.rvm"
# Make this work with OS X Lion... for now...
if [[ `uname -v` =~ "Darwin Kernel Version 11" ]] ; then
export CC=/usr/bin/gcc-4.2
#export CC=/usr/bin/i686-apple-darwin11-gcc-4.2.1
fi
# Export compile flags for MacPorts:
if [ -d /opt/local/bin ] ; then
export CFLAGS="-O2 -arch x86_64"
# Per http://beginrescueend.com/integration/macports/
# BUT: prefix with rvm's paths to allow installation of rbx to pick up rvm's
# openssl, readline, etc.:
#export LDFLAGS="-L/opt/local/lib"
#export CPPFLAGS="-I/opt/local/include"
export LDFLAGS="-L$HOME/.rvm/usr/lib -L/opt/local/lib"
export CPPFLAGS="-I$HOME/.rvm/usr/include -I/opt/local/include"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment