summaryrefslogtreecommitdiffstats
path: root/package/python3
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-08 00:00:30 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-09 22:35:34 +0100
commit5b17d9f5f7e7968e4eddebfd9d06b76027bc8ef4 (patch)
tree32ee9add2b187a53b21e89c0ec6ca6e813a19950 /package/python3
parent63aeae6538770ab7f4eb048373b2e8d99c26d4c5 (diff)
downloadbuildroot-5b17d9f5f7e7968e4eddebfd9d06b76027bc8ef4.tar.gz
buildroot-5b17d9f5f7e7968e4eddebfd9d06b76027bc8ef4.zip
python3: explicitly disable OpenSSL support for the target
Commit fa627738266e ("python3: do not use the system OpenSSL in the host variant") added a patch that allows to disable building the OpenSSL related modules in Python, even if OpenSSL is found. But in this commit, it was only used to unconditionally disable OpenSSL support for the host python3. This commit extends that to use the --disable-openssl option also for the target python3, when BR2_PACKAGE_PYTHON3_SSL. This ensures that if BR2_PACKAGE_PYTHON3_SSL is disabled, but BR2_PACKAGE_OPENSSL is enabled, we still don't get the OpenSSL modules built, as the user would expect. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python3')
-rw-r--r--package/python3/python3.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 8bfae79f58..4ca049c986 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -90,6 +90,8 @@ endif
ifeq ($(BR2_PACKAGE_PYTHON3_SSL),y)
PYTHON3_DEPENDENCIES += openssl
+else
+PYTHON3_CONF_OPTS += --disable-openssl
endif
ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y)
OpenPOWER on IntegriCloud