You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AC_MSG_ERROR([iOS shared builds must use --enable-framework; an iOS app can only load a signed framework, never a bare dylib])
1673
+
fi
1677
1674
LDLIBRARY='libpython$(LDVERSION).dylib'
1678
1675
;;
1679
1676
AIX*)
@@ -1693,10 +1690,6 @@ else # shared is disabled
1693
1690
fi
1694
1691
AC_MSG_RESULT([$LDLIBRARY])
1695
1692
1696
-
if test "$ac_sys_system" = "iOS" && test "$PY_ENABLE_SHARED" = 1 && test -z "$PYTHONFRAMEWORK"; then
1697
-
AC_MSG_ERROR([iOS builds must use --enable-framework; --enable-shared cannot be used without a framework, as an iOS app can only load a signed framework])
1698
-
fi
1699
-
1700
1693
# HOSTRUNNER - Program to run CPython for the host platform
dnl Some test modules can only be built as shared libraries (see
8155
+
dnl Modules/Setup.stdlib.in), which a non-framework iOS build cannot do.
8156
+
AS_IF([test "$ac_sys_system" = "iOS" && test -z "$PYTHONFRAMEWORK"],
8157
+
[AS_IF([test "$TEST_MODULES" != "no"],
8158
+
[AC_MSG_ERROR([iOS non-framework builds must use --disable-test-modules])])])
8161
8159
AC_SUBST([TEST_MODULES])
8162
8160
8163
8161
# Check for --with-build-details-suffix
@@ -8397,14 +8395,11 @@ AS_CASE([$host_cpu],
8397
8395
)
8398
8396
AC_SUBST([MODULE_BUILDTYPE])
8399
8397
8400
-
dnl A non-framework iOS build can neither link nor load shared extension
8401
-
dnl modules; some test modules can only be shared (see Modules/Setup.stdlib.in).
8402
-
AS_IF([test "$ac_sys_system" = "iOS" && test -z "$PYTHONFRAMEWORK"], [
8403
-
AS_IF([test "$MODULE_BUILDTYPE" != "static"],
8404
-
[AC_MSG_ERROR([iOS builds must use --enable-framework; a non-framework build cannot build shared extension modules, and requires MODULE_BUILDTYPE=static])])
8405
-
AS_IF([test "$TEST_MODULES" != "no"],
8406
-
[AC_MSG_ERROR([iOS builds must use --enable-framework; a non-framework build cannot build the shared test modules, and requires --disable-test-modules])])
8407
-
])
8398
+
dnl A non-framework iOS build has no framework for a shared extension module
8399
+
dnl to link against, so every extension module must be built into libpython.
8400
+
AS_IF([test "$ac_sys_system" = "iOS" && test -z "$PYTHONFRAMEWORK"],
8401
+
[AS_IF([test "$MODULE_BUILDTYPE" != "static"],
8402
+
[AC_MSG_ERROR([iOS non-framework builds must use MODULE_BUILDTYPE=static])])])
0 commit comments