commit 8c5b230b2495214dc309fb6233770afe86c810ba
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Fri Nov 1 10:02:41 2019 +0530
Remove: Fedora build flags; useless warnings on logs
chromium-freeworld.spec | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index ca3458c..2f13b49 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -533,18 +533,9 @@ export CC=gcc CXX=g++
# GN needs gold to bootstrap
export LDFLAGS="$LDFLAGS -fuse-ld=gold"
# Set proper cflags, cxxflags
-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 CFLAGS="$CFLAGS -w"
-export CXXFLAGS="$CXXFLAGS -fpermissive"
+export CXXFLAGS="$CXXFLAGS -fpermissive -w"
%if 0%{?fedora} <= 29
export CXXFLAGS="$CXXFLAGS -fno-ipa-cp-clone"
%endif