diff --git a/configure b/configure index 2d5a61e71eb7..acb400f50898 100755 --- a/configure +++ b/configure @@ -17810,7 +17810,7 @@ $as_echo "yes" >&6; } fi LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' -if test "$PY_ENABLE_SHARED" = 1; then +if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" if test "$STATIC_LIBPYTHON" = 1; then LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" diff --git a/configure.ac b/configure.ac index e71d74c872b7..9802c65ce179 100644 --- a/configure.ac +++ b/configure.ac @@ -5903,7 +5903,7 @@ else fi], [AC_MSG_RESULT(yes)]) LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' -if test "$PY_ENABLE_SHARED" = 1; then +if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" if test "$STATIC_LIBPYTHON" = 1; then LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"