mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-11-29 23:30:51 +01:00
Really fix installing Ruby 2.1.0 from trunk
The problem wasn't in quoting as per0b5206172, but in the fact that Ruby trunk added a LDFLAGS checker that aborts if any of the paths listed in it are missing:3636f8c0f5This 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:
parent
0b52061728
commit
50bf60f9c2
2 changed files with 11 additions and 1 deletions
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue