Skip to content

Commit

Permalink
export CC="/usr/bin/gcc-4.2" if darwin11
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Jul 25, 2011
1 parent a29169b commit a06aa7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/functions/manage/base
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ __rvm_install_source()
fi

case ${rvm_ruby_string:-""} in
ruby-1.8*|ree*)
case "${OSTYPE}" in
darwin11)
export CC="/usr/bin/gcc-4.2"
;;
esac
;;
ruby-head|1.9.*-head)
if ! __rvm_ensure_has_18_compat_ruby
then
Expand Down

2 comments on commit a06aa7f

@lightcap
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change do we also need to put the export CC=gcc-4.2 line in startup scripts like the post-install script instructs us to?

@wayneeseguin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need any gems with compiled C extensions, it is highly likely.

Please sign in to comment.