build-style/python-module: reset CFLAGS and LDFLAGS in each run
This commit is contained in:
parent
cd52823721
commit
3e6ea8d31a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue