Browse Source

use fixed flags

jk 4 years ago
parent
commit
7ecdd829ff
1 changed files with 2 additions and 3 deletions
  1. 2 3
      PKGBUILD

+ 2 - 3
PKGBUILD

@@ -186,9 +186,8 @@ build() {
   _ungoogled_repo="$srcdir/$_pkgname-$_uc_ver"
   _ungoogled_repo="$srcdir/$_pkgname-$_uc_ver"
   readarray -t -O ${#_flags[@]} _flags < "${_ungoogled_repo}/flags.gn"
   readarray -t -O ${#_flags[@]} _flags < "${_ungoogled_repo}/flags.gn"
 
 
-  # remove flags the break building
-  CFLAGS=${CFLAGS/-fcf-protection}
-  CFLAGS=${CFLAGS/-fexceptions}
+  # use fixed flags as system flags break build
+  CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
   CXXFLAGS="$CFLAGS"
   CXXFLAGS="$CFLAGS"
 
 
   # Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)
   # Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)