add -ffat-lto-flag to support arm build
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 20 Oct 2016 18:53:58 +0000 (21:53 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 20 Oct 2016 18:53:58 +0000 (21:53 +0300)
packaging/python.spec

index 4a314e4936857eaf5e218397a42640abfa84708e..b8fd8771189d30ba136ffd0c0a335a196efb0d46 100644 (file)
@@ -106,6 +106,13 @@ autoreconf -f -i . # Modules/_ctypes/libffi
 # python installation
 touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
 
+%ifarch armv7l
+CFLAGS+=" -ffat-lto-objects "
+%endif
+
+%ifarch aarch64
+CFLAGS+=" -ffat-lto-objects "
+%endif
 %configure \
     --docdir=%{_docdir}/python \
     --enable-ipv6 \