@@ -30,7 +30,11 @@ BUILD_NUMBER=custom
3030MACOSX_DEPLOYMENT_TARGET =10.8
3131
3232# Version of packages that will be compiled by this meta-package
33+ # PYTHON_VERSION is the full version number (e.g., 3.10.0b3)
34+ # PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
35+ # PYTHON_VER is the major/minor version (e.g., 3.10)
3336PYTHON_VERSION =3.6.14
37+ PYTHON_MICRO_VERSION =$(shell echo $(PYTHON_VERSION ) | grep -Eo "\d+\.\d+\.\d+")
3438PYTHON_VER =$(basename $(PYTHON_VERSION ) )
3539
3640OPENSSL_VERSION_NUMBER =1.0.2
@@ -156,7 +160,7 @@ clean-Python:
156160# Download original Python source code archive.
157161downloads/Python-$(PYTHON_VERSION ) .tgz :
158162 mkdir -p downloads
159- if [ ! -e downloads/Python-$( PYTHON_VERSION) .tgz ]; then curl -L https://www.python.org/ftp/python/$( PYTHON_VERSION ) /Python-$( PYTHON_VERSION) .tgz > downloads/Python-$( PYTHON_VERSION) .tgz; fi
163+ if [ ! -e downloads/Python-$( PYTHON_VERSION) .tgz ]; then curl -L https://www.python.org/ftp/python/$( PYTHON_MICRO_VERSION ) /Python-$( PYTHON_VERSION) .tgz > downloads/Python-$( PYTHON_VERSION) .tgz; fi
160164
161165# Some Python targets needed to identify the host build
162166PYTHON_DIR-macOS =build/macOS/Python-$(PYTHON_VERSION ) -macOS
@@ -212,13 +216,13 @@ endif
212216ifeq ($2,macOS)
213217 cd $$(OPENSSL_DIR-$1) && \
214218 CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
215- ./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
219+ ./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
216220else
217221 cd $$(OPENSSL_DIR-$1) && \
218222 CC="$$(CC-$1)" \
219223 CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
220224 CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
221- ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
225+ ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
222226endif
223227
224228# Build OpenSSL
0 commit comments