From 6cdccd341268db294552b6aed000c0d3f066fb52 Mon Sep 17 00:00:00 2001 From: happy_orange Date: Tue, 26 Apr 2022 04:49:47 -0400 Subject: [PATCH] fix build in arm --- webkit2gtk3.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index e096d6f..a5a082d 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -160,9 +160,11 @@ rm -rf Source/ThirdParty/qunit/ %build # Increase the DIE limit so our debuginfo packages could be size optimized. # Decreases the size for x86_64 from ~5G to ~1.1G. -%global _dwz_max_die_limit 250000000 +%global _dwz_max_die_limit 350000000 %global _dwz_max_die_limit_x86_64 250000000 +%global optflags %(echo %{optflags} -Wl,--no-keep-memory | sed 's/-g /-g1 /') + %cmake \ -GNinja \ -DPORT=GTK \ @@ -175,6 +177,11 @@ rm -rf Source/ThirdParty/qunit/ %endif %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ +%endif +%ifarch aarch64 + -DENABLE_JIT=OFF \ + -DUSE_SYSTEM_MALLOC=ON \ + -DUSE_64KB_PAGE_BLOCK=ON \ %endif %{nil} -- Gitee