Remove -flto, can't be build with lto sandbox/denis13/LTO
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Wed, 8 Feb 2017 15:12:34 +0000 (18:12 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Wed, 8 Feb 2017 15:12:34 +0000 (18:12 +0300)
packaging/mono.spec

index ab5a92f2d811f8dd1e69a99c0f5276e9fb6d42f5..8682861e588e667b93b2a7e3e0cda3fa0509493f 100644 (file)
@@ -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