From 7bbbb1307e4e264a8f538ac29e90e01f091ce35e Mon Sep 17 00:00:00 2001 From: Zhou Qiankang Date: Tue, 10 Dec 2024 17:02:28 +0800 Subject: [PATCH] updpatch: pacman, ver=7.0.0.r6.gc685ae6-1.1 * Sync CFLAGS Signed-off-by: Zhou Qiankang --- pacman/loong.patch | 4 ++-- pacman/makepkg.loong64.diff | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pacman/loong.patch b/pacman/loong.patch index ba298b2..31ffe38 100644 --- a/pacman/loong.patch +++ b/pacman/loong.patch @@ -1,5 +1,5 @@ diff --git a/PKGBUILD b/PKGBUILD -index db1fa23..82406ea 100644 +index 6bf51ca..2fe41f4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -22,7 +22,7 @@ depends=( @@ -34,7 +34,7 @@ index db1fa23..82406ea 100644 +source+=(makepkg.loong64.diff + pacman-use-loong64.patch + pacman.loong64.diff) -+sha256sums+=('944c57e9abbbd9a550a6d1b5a234fd11a6cba29dc136f72c9d3ce33c5ef581cc' ++sha256sums+=('7d596664948b82aaef8f0c6149f00ebbce830433216b504e58fbe6fa0ea4cf63' + '5ab2a0ae2747184e7a3b0d4f6f45f0a66b6ad85e853b78fb77102e4b32667cdc' + 'fadd0c5453aadfcb89cebb0bfc64674f68c7d988e512d8a4fca14718afa2cc62') + diff --git a/pacman/makepkg.loong64.diff b/pacman/makepkg.loong64.diff index 93fda9c..33192c1 100644 --- a/pacman/makepkg.loong64.diff +++ b/pacman/makepkg.loong64.diff @@ -1,4 +1,4 @@ -@@ -35,18 +35,16 @@ +@@ -35,18 +35,17 @@ # ARCHITECTURE, COMPILE FLAGS ######################################################################### # @@ -10,12 +10,12 @@ #-- Compiler and Linker Flags #CPPFLAGS="" -CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ -- -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \ ++CFLAGS="-mabi=lp64d -march=loongarch64 -mlsx -O2 -pipe -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \ - -fstack-clash-protection -fcf-protection \ - -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" -+CFLAGS="-mabi=lp64d -march=loongarch64 -mlsx -O2 -pipe -fexceptions \ -+ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ -+ -fstack-clash-protection" ++ -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"