commit acc402fb3b52ef70e15d12154547ca7878e72514
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Nov 2 10:34:14 2019 +0530
Move: Support Redhat Build flags only on fedora 31 and due to ld bug
chromium-freeworld.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index d186546..f4daffb 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -532,7 +532,9 @@ export CC=gcc CXX=g++
# GN needs gold to bootstrap
export LDFLAGS="$LDFLAGS -fuse-ld=gold"
+
# Set proper cflags, cxxflags
+%if 0%{?fedora} >= 31
export CFLAGS="$(echo '%{__global_cflags}' |sed -e
's/-fexceptions//' \
-e 's/-Werror=format-security//'
\
-e 's/-pipe//' \
@@ -543,6 +545,7 @@ export CXXFLAGS="$(echo
'%{?__global_cxxflags}%{!?__global_cxxflags:%{__global_c
-e 's/-pipe//' \
-e 's/-g/-g1/g' \
-e 's/-g1record-g1cc-switches//' )"
+%endif
export CXXFLAGS="$CXXFLAGS -fpermissive"
%if !%{debug_logs}