From a4fd3a1646dee8a9e34d1cf2e285d3a116816939 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Nov 2014 08:54:29 +0100 Subject: [PATCH] python: fix musl builds. --- srcpkgs/python/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/python/template b/srcpkgs/python/template index 5aa2d482227..13d2854e562 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -26,6 +26,7 @@ pre_configure() { } do_configure() { + local _args unset GCC CC CXX CPP LD AR AS RANLIB if [ "$CROSS_BUILD" ]; then mkdir -p host-build @@ -36,8 +37,9 @@ do_configure() { mv python ../hostpython cd .. patch -Np0 -i ${FILESDIR}/Python-2.7.6-xcompile.patch + _args="--build=${XBPS_MACHINE%%-musl}" fi - ./configure ${configure_args} --build=${XBPS_MACHINE}-unknown-linux-gnu \ + ./configure ${configure_args} ${_args} \ --with-threads --enable-ipv6 --with-signal-module \ --with-system-ffi --enable-unicode=ucs4 --with-system-expat \ --with-wctype-functions --enable-shared \