python3: Fix target python-config when building on macOS 14767/head
authorJeffery To <jeffery.to@gmail.com>
Tue, 16 Feb 2021 14:23:50 +0000 (22:23 +0800)
committerJeffery To <jeffery.to@gmail.com>
Tue, 16 Feb 2021 16:01:41 +0000 (00:01 +0800)
commit18330902a0ca1b162e1ae938d8024cfb7e7c524d
treea2db35a0bde50e45dedb63341cda93139de90c5b
parenteea050dab82c7cefb44fd4ab1e705b3378e7fa06
python3: Fix target python-config when building on macOS

The Python version of python-config is installed when building on macOS,
rather than the shell script version when building on Linux. When run on
macOS, the Python version of python-config will return values with
Mac-specific customizations.

This patches the python-config install recipe so that which version is
installed can be controlled by the package makefile. When building on
macOS, this installs the Python version for host Python and the shell
script version for target Python.

This also updates Host/Compile and Host/Install to use the default host
build recipes, so that the various HOST_* variables are taken into
account automatically.

Fixes https://github.com/openwrt/packages/issues/14652

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python3/Makefile
lang/python/python3/patches/025-choose-python-config-version.patch [new file with mode: 0644]