build-style/python-module: reset CFLAGS and LDFLAGS in each run
This commit is contained in:
parent
cd52823721
commit
3e6ea8d31a
1 changed files with 4 additions and 1 deletions
|
@ -4,10 +4,13 @@
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
: ${python_versions:="2.7 $py3_ver"}
|
: ${python_versions:="2.7 $py3_ver"}
|
||||||
local pyver= pysufx=
|
local pyver= pysufx= tmp_cflags="$CFLAGS" tmp_ldflags="$LDFLAGS"
|
||||||
|
|
||||||
for pyver in $python_versions; do
|
for pyver in $python_versions; do
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
CFLAGS="$tmp_cflags"
|
||||||
|
LDFLAGS="$tmp_ldflags"
|
||||||
|
|
||||||
PYPREFIX="$XBPS_CROSS_BASE"
|
PYPREFIX="$XBPS_CROSS_BASE"
|
||||||
if [ "$pyver" != "2.7" ]; then
|
if [ "$pyver" != "2.7" ]; then
|
||||||
pysufx=m
|
pysufx=m
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue