From 3e6ea8d31a293227d9a96691207ee275d3090fb0 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 30 Jan 2019 22:51:19 -0200 Subject: [PATCH] build-style/python-module: reset CFLAGS and LDFLAGS in each run --- common/build-style/python-module.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/build-style/python-module.sh b/common/build-style/python-module.sh index 57ec8c73831..d3c93de38ca 100644 --- a/common/build-style/python-module.sh +++ b/common/build-style/python-module.sh @@ -4,10 +4,13 @@ do_build() { : ${python_versions:="2.7 $py3_ver"} - local pyver= pysufx= + local pyver= pysufx= tmp_cflags="$CFLAGS" tmp_ldflags="$LDFLAGS" for pyver in $python_versions; do if [ -n "$CROSS_BUILD" ]; then + CFLAGS="$tmp_cflags" + LDFLAGS="$tmp_ldflags" + PYPREFIX="$XBPS_CROSS_BASE" if [ "$pyver" != "2.7" ]; then pysufx=m