From: Denis Khalikov Date: Thu, 20 Oct 2016 19:05:17 +0000 (+0300) Subject: using -ffat-lto-flag X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7114f9cceb2ff78e4d4dc683bf20ecbdc18f469;p=platform%2Fupstream%2Fpython3.git using -ffat-lto-flag --- diff --git a/packaging/python3-base.spec b/packaging/python3-base.spec index d77c891f..cae18d12 100644 --- a/packaging/python3-base.spec +++ b/packaging/python3-base.spec @@ -213,6 +213,15 @@ done ### COMMON-PREP-END ### %build + +%ifarch aarch64 +CFLAGS+=" -ffat-lto-objects " +%endif + +%ifarch armv7l +CFLAGS+=" -ffat-lto-objects " +%endif + # use rpm_opt_flags export OPT="%{optflags} -DOPENSSL_LOAD_CONF" diff --git a/packaging/python3.spec b/packaging/python3.spec index a082080f..9e27c74c 100644 --- a/packaging/python3.spec +++ b/packaging/python3.spec @@ -156,6 +156,14 @@ done ### COMMON-PREP-END ### %build +%ifarch aarch64 +CFLAGS+=" -ffat-lto-objects " +%endif + +%ifarch armv7l +CFLAGS+=" -ffat-lto-objects " +%endif + export SUSE_ASNEEDED=0 export OPT="%{optflags} -DOPENSSL_LOAD_CONF"