From 9b23e8c650518cec2cbdf4f7a34dd865df788264 Mon Sep 17 00:00:00 2001 From: Denis Khalikov Date: Wed, 8 Feb 2017 18:12:34 +0300 Subject: [PATCH] Remove -flto, can't be build with lto --- packaging/mono.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/mono.spec b/packaging/mono.spec index ab5a92f2..8682861e 100644 --- a/packaging/mono.spec +++ b/packaging/mono.spec @@ -330,7 +330,8 @@ rm -rf mcs/class/lib/monolite/* %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" - +export CFLAGS=$(echo $CFLAGS | sed -e "s/-flto//g") +export CXXFLAGS=$(echo $CXXFLAGS | sed -e "s/-flto//g") %configure --disable-rpath \ --with-moonlight=no -- 2.34.1