summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/python.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/python.spec b/packaging/python.spec
index 4a314e4..ffaea54 100644
--- a/packaging/python.spec
+++ b/packaging/python.spec
@@ -106,6 +106,16 @@ autoreconf -f -i . # Modules/_ctypes/libffi
# python installation
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
+%ifarch armv7l
+CFLAGS=$(echo $CFLAGS | sed -e "s/-flto//g")
+%endif
+
+%ifarch aarch64
+CFLAGS=$(echo $CFLAGS | sed -e "s/-flto//g")
+%endif
+
+
+
%configure \
--docdir=%{_docdir}/python \
--enable-ipv6 \