Really fix installing Ruby 2.1.0 from trunk

The problem wasn't in quoting as per 0b5206172, but in the fact that
Ruby trunk added a LDFLAGS checker that aborts if any of the paths
listed in it are missing:
3636f8c0f5

This is probably a bug in Ruby, but for now a simple workaround is to
iterate through paths in LDFLAGS and ensure they exist.

References #441
This commit is contained in:
Mislav Marohnić 2013-10-27 21:32:18 +01:00
parent 0b52061728
commit 50bf60f9c2
2 changed files with 11 additions and 1 deletions

View file

@ -699,6 +699,16 @@ build_package_verify_openssl() {
end' >&4 2>&1
}
# Ensure that directories listed in LDFLAGS exist
build_package_ldflags_dirs() {
local arg
for arg in $LDFLAGS; do
case "$arg" in
-L* ) mkdir -p "${arg#-L}" ;;
esac
done
}
rake() {
if [ -e "./Gemfile" ]; then
bundle exec rake "$@"