diff --git a/bin/ruby-build b/bin/ruby-build index 51fde4bb..229d4b0a 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -1190,21 +1190,9 @@ build_package_verify_openssl() { ' "$(basename "$(type -p yum apt-get | head -1)")" >&4 2>&1 } -# Ensure that directories listed in LDFLAGS exist +# Kept for backward compatibility with 3rd-party definitions. build_package_ldflags_dirs() { - local ldflags - read -d '' -r -a ldflags <<<"$LDFLAGS" || true - local index=0 - local dir - while [ "$index" -lt "${#ldflags[@]}" ]; do - dir="" - case "${ldflags[index]}" in - -L ) dir="${ldflags[index+1]}" ;; - -L* ) dir="${ldflags[index]#-L}" ;; - esac - [ -z "$dir" ] || mkdir -p "$dir" - index=$((index+1)) - done + true } build_package_enable_shared() { @@ -1511,9 +1499,6 @@ else fi fi -export LDFLAGS="-L${PREFIX_PATH}/lib ${LDFLAGS}" -export CPPFLAGS="-I${PREFIX_PATH}/include ${CPPFLAGS}" - unset RUBYOPT unset RUBYLIB diff --git a/script/update-cruby b/script/update-cruby index ad1c18ac..0ce2b224 100755 --- a/script/update-cruby +++ b/script/update-cruby @@ -26,5 +26,5 @@ fi cat > "$file" <