1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 04:23:47 -05:00

Don't set --enable-shared if user supplied --disable-shared

This commit is contained in:
Ivan Pozdeev
2023-01-14 01:25:38 +03:00
parent 4242694a0e
commit e447fe5b73
2 changed files with 25 additions and 1 deletions

View File

@@ -2198,7 +2198,7 @@ if [ -n "$DEBUG" ]; then
package_option python configure --with-pydebug
fi
if [[ "$CONFIGURE_OPTS $PYTHON_CONFIGURE_OPTS" != *"--enable-framework"* ]]; then
if [[ "$CONFIGURE_OPTS $PYTHON_CONFIGURE_OPTS" != *"--enable-framework"* && "$CONFIGURE_OPTS $PYTHON_CONFIGURE_OPTS" != *"--disable-shared"* ]]; then
package_option python configure --enable-shared
fi