diff --git a/chromium-browser-stable.spec b/chromium-browser-stable.spec index c611817..7780f9b 100644 --- a/chromium-browser-stable.spec +++ b/chromium-browser-stable.spec @@ -408,6 +408,14 @@ sed -i \ -e '/"-Wno-defaulted-function-deleted"/d' \ build/config/compiler/BUILD.gn +# Use native page size on aarch64 ("if (current_cpu == "arm64")"), otherwise: +# /lib64/ld-linux-aarch64.so.1 ./bytecode_builtins_list_generator +# ./bytecode_builtins_list_generator: error while loading shared libraries: +# ./bytecode_builtins_list_generator: ELF load command alignment not page-aligned +sed -i \ + -e 's!-Wl,-z,max-page-size=4096!!g' \ + build/config/compiler/BUILD.gn + # base/rand_util_posix.cc:27:10: fatal error: 'sys/random.h' file not found sed -i "s|sys/random.h|/usr/include/linux/random.h|g" base/rand_util_posix.cc