Correctly stop overriding optimization flags

epel9
Benjamin A. Beasley 3 years ago
parent 7ef324a473
commit 25a26ddfb6

@ -0,0 +1,14 @@
diff -Naur gn-0153d369bbccc908f4da4993b1ba82728055926a-original/build/gen.py gn-0153d369bbccc908f4da4993b1ba82728055926a/build/gen.py
--- gn-0153d369bbccc908f4da4993b1ba82728055926a-original/build/gen.py 2021-09-27 14:58:14.000000000 -0400
+++ gn-0153d369bbccc908f4da4993b1ba82728055926a/build/gen.py 2021-09-27 15:59:42.330405195 -0400
@@ -344,10 +344,8 @@
cflags.extend(['-O0', '-g'])
else:
cflags.append('-DNDEBUG')
- cflags.append('-O3')
if options.no_strip:
cflags.append('-g')
- ldflags.append('-O3')
# Use -fdata-sections and -ffunction-sections to place each function
# or data item into its own section so --gc-sections can eliminate any
# unused functions and data items.

@ -53,6 +53,8 @@ Source2: update-version
# ce30313f5e4af121140c037bf026453355534f24/f/ # ce30313f5e4af121140c037bf026453355534f24/f/
# chromium-84.0.4147.105-gn-gcc-cleanup.patch # chromium-84.0.4147.105-gn-gcc-cleanup.patch
Patch0: %{name}-39a87c0b-gcc-cleanup.patch Patch0: %{name}-39a87c0b-gcc-cleanup.patch
# Stop overriding optimization flags
Patch1: %{name}-0153d369-no-O3.patch
BuildRequires: python3 BuildRequires: python3
BuildRequires: python3-devel BuildRequires: python3-devel
@ -100,9 +102,6 @@ cp -vp misc/vim/README.md README-vim.md
# Fix shebangs in examples and such. # Fix shebangs in examples and such.
%py3_shebang_fix . %py3_shebang_fix .
# Stop overriding optimization flags
sed -r -i '/.append(.-O3.)/d' build/gen.py
%build %build
AR='gcc-ar'; export AR AR='gcc-ar'; export AR

Loading…
Cancel
Save