Skip to content

Commit

Permalink
fix libs compilation config files, update #1146
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 24, 2012
1 parent c25fdfd commit 13b5671
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/external
Expand Up @@ -344,11 +344,26 @@ __rvm_fix_wrappers()
done
}

__rvm_fix_lib_files()
{
typeset __path __file
__path="$rvm_rubies_path/$rvm_ruby_string"

__file="$( find "${__path}" -name libyaml.la )"
__rvm_sed_i "${__file}" -e "s#^libdir=.*\$#libdir='$(dirname "${__file}")'#"

find "${__path}" -name "*.pc" | while read __file
do
__rvm_sed_i "${__file}" -e "s#^prefix=.*\$#prefix=${__path}#"
done
}

external_import_setup()
{
__rvm_ruby_string
"$rvm_scripts_path/rubygems" link
__rvm_fix_wrappers
__rvm_fix_lib_files

rvm_create_flag=1 __rvm_use

Expand Down

0 comments on commit 13b5671

Please sign in to comment.