Commit 20b3d5b5 authored by Stefan Behnel's avatar Stefan Behnel

Clean up CFLAGS/LDFLAGS setup in wheel build.

parent fc368507
...@@ -5,7 +5,7 @@ REPO = git://github.com/cython/cython.git ...@@ -5,7 +5,7 @@ REPO = git://github.com/cython/cython.git
VERSION?=$(shell sed -ne 's|^__version__\s*=\s*"\([^"]*\)".*|\1|p' Cython/Shadow.py) VERSION?=$(shell sed -ne 's|^__version__\s*=\s*"\([^"]*\)".*|\1|p' Cython/Shadow.py)
MANYLINUX_CFLAGS=-O3 -g0 -mtune=generic -pipe -fPIC MANYLINUX_CFLAGS=-O3 -g0 -mtune=generic -pipe -fPIC
MANYLINUX_LDFLAGS=-flto MANYLINUX_LDFLAGS=
MANYLINUX_IMAGES= \ MANYLINUX_IMAGES= \
manylinux1_x86_64 \ manylinux1_x86_64 \
manylinux1_i686 \ manylinux1_i686 \
...@@ -79,8 +79,8 @@ wheel_%: dist/$(PACKAGENAME)-$(VERSION).tar.gz ...@@ -79,8 +79,8 @@ wheel_%: dist/$(PACKAGENAME)-$(VERSION).tar.gz
mkdir -p wheelhouse_$(subst wheel_,,$@) mkdir -p wheelhouse_$(subst wheel_,,$@)
time docker run --rm -t \ time docker run --rm -t \
-v $(shell pwd):/io \ -v $(shell pwd):/io \
-e CFLAGS="$(MANYLINUX_CFLAGS) $(if $(patsubst %aarch64,,$@),-march=core2,-march=armv8-a -mtune=cortex-a72)" \ -e CFLAGS="$(MANYLINUX_CFLAGS)" \
-e LDFLAGS="$(LDFLAGS) -fPIC" \ -e LDFLAGS="$(MANYLINUX_LDFLAGS) -fPIC" \
-e WHEELHOUSE=wheelhouse$(subst wheel_musllinux,,$(subst wheel_manylinux,,$@)) \ -e WHEELHOUSE=wheelhouse$(subst wheel_musllinux,,$(subst wheel_manylinux,,$@)) \
quay.io/pypa/$(subst wheel_,,$@) \ quay.io/pypa/$(subst wheel_,,$@) \
bash -c 'for PYBIN in /opt/python/cp*/bin; do \ bash -c 'for PYBIN in /opt/python/cp*/bin; do \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment