diff options
Diffstat (limited to 'makepkg-riscv64.patch')
-rw-r--r-- | makepkg-riscv64.patch | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/makepkg-riscv64.patch b/makepkg-riscv64.patch index 32e42a709563..7b215b4c53b8 100644 --- a/makepkg-riscv64.patch +++ b/makepkg-riscv64.patch @@ -1,6 +1,6 @@ ---- /usr/share/devtools/makepkg.conf.d/x86_64.conf 2024-02-10 08:01:05.000000000 +0800 -+++ riscv64.conf 2024-02-12 10:07:10.892146821 +0800 -@@ -35,17 +35,16 @@ +--- /usr/share/devtools/makepkg.conf.d/x86_64.conf 2024-05-01 22:44:58.000000000 +0800 ++++ riscv64.conf 2024-05-06 13:32:34.091162468 +0800 +@@ -35,18 +35,17 @@ # ARCHITECTURE, COMPILE FLAGS ######################################################################### # @@ -13,13 +13,15 @@ #CPPFLAGS="" -CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ +CFLAGS="-march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions \ - -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ -- -fstack-clash-protection -fcf-protection" -+ -fstack-clash-protection" + -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \ +- -fstack-clash-protection -fcf-protection \ +- -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" ++ -fstack-clash-protection \ ++ -fno-omit-frame-pointer" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" -LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \ - -Wl,-z,pack-relative-relocs" +LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now" LTOFLAGS="-flto=auto" - RUSTFLAGS="" + RUSTFLAGS="-Cforce-frame-pointers=yes" #-- Make Flags: change this for DistCC/SMP systems |