1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-09 12:03:49 -05:00

ldflags_dirs is not needed for Python and causes failures

Ensuring that all dirs in LDFLAGS exist is only needed for Ruby due to its `configure` requirements.
If some LDFLAGS entries point to a nonexisting path to which the user doesn't have permission. this causes a build failure.
This commit is contained in:
Ivan Pozdeev
2021-05-19 05:28:03 +03:00
parent ddf952ab2d
commit e5db32499c
148 changed files with 226 additions and 241 deletions

View File

@@ -1516,21 +1516,6 @@ use_xcode_sdk_zlib() {
fi
}
# Ensure that directories listed in LDFLAGS exist
build_package_ldflags_dirs() {
local arg dir
set - $LDFLAGS
while [ $# -gt 0 ]; do
dir=""
case "$1" in
-L ) dir="$2" ;;
-L* ) dir="${1#-L}" ;;
esac
[ -z "$dir" ] || mkdir -p "$dir"
shift 1
done
}
build_package_enable_shared() {
package_option python configure --enable-shared
}