build-style/python-module: reset CFLAGS and LDFLAGS in each run

This commit is contained in:
maxice8 2019-01-30 22:51:19 -02:00 committed by maxice8
parent cd52823721
commit 3e6ea8d31a

View file

@ -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