commit 35772b7e724c5861c517abe4f9bbd827d1ca483a
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Fri Nov 1 21:00:27 2019 +0530
Revert "Remove: Fedora build flags; useless warnings on logs"
This reverts commit 8c5b230b2495214dc309fb6233770afe86c810ba.
chromium-freeworld.spec | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 2f13b49..ca3458c 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -533,9 +533,18 @@ export CC=gcc CXX=g++
# GN needs gold to bootstrap
export LDFLAGS="$LDFLAGS -fuse-ld=gold"
# Set proper cflags, cxxflags
-export CFLAGS="$CFLAGS -w"
+export CFLAGS="$(echo '%{__global_cflags}' |sed -e
's/-fexceptions//' \
+ -e 's/-Werror=format-security//'
\
+ -e 's/-pipe//' \
+ -e 's/-g/-g1/g' \
+ -e 's/-g1record-g1cc-switches//'
)"
+export CXXFLAGS="$(echo
'%{?__global_cxxflags}%{!?__global_cxxflags:%{__global_cflags}}' | sed -e
's/-fexceptions//' \
+
-e 's/-Werror=format-security//' \
+
-e 's/-pipe//' \
+
-e 's/-g/-g1/g' \
+
-e 's/-g1record-g1cc-switches//' )"
-export CXXFLAGS="$CXXFLAGS -fpermissive -w"
+export CXXFLAGS="$CXXFLAGS -fpermissive"
%if 0%{?fedora} <= 29
export CXXFLAGS="$CXXFLAGS -fno-ipa-cp-clone"
%endif