remove -flto flag from python3-base sandbox/denis13/NoLTO
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 20 Oct 2016 18:15:19 +0000 (21:15 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 20 Oct 2016 18:15:19 +0000 (21:15 +0300)
packaging/python3-base.spec

index d77c891f9f16fdf2a41220ba4ce3256a1f748fe7..dce125b9dbe90526d6ff27da31cb9844de556f57 100644 (file)
@@ -213,6 +213,15 @@ done
 ### COMMON-PREP-END ###
 
 %build
+
+%ifarch aarch64
+CFLAGS=$( echo $CFLAGS | sed -e "s/-flto//g")
+%endif
+
+%ifarch armv7l
+CFLAGS=$( echo $CFLAGS | sed -e "s/-flto//g")
+%endif
+
 # use rpm_opt_flags
 export OPT="%{optflags} -DOPENSSL_LOAD_CONF"