Levente Polyak pushed to branch main at Arch Linux / Packaging / Packages / 
thc-ipv6


Commits:
06fd6f17 by Coelacanthus at 2025-08-21T05:56:44+08:00
fix: strip upstream optimization options to ensure respect our flags

* -march=native will lead to SIGILL, resolve #1
* strip -g -O3 -flto to obey our compile options

Signed-off-by: Celeste Liu <[email protected]>
- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -18,6 +18,11 @@ 
b2sums=('a2b57e13a47aacf1205b87c6f30cbea2468f47aad7232b92190995bf7ffbb64904d4d0c
 prepare() {
   cd ${pkgname}-${pkgver}
   sed 's|CFLAGS=|CFLAGS+=|g' -i Makefile
+  sed -e 's|-g||g' \
+      -e 's|-O3||g' \
+      -e 's|-march=native||g' \
+      -e 's|-flto||g' \
+      -i Makefile
 }
 
 build() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/thc-ipv6/-/commit/06fd6f1727e0970bdeb521dd3014d33d9ef76080

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/thc-ipv6/-/commit/06fd6f1727e0970bdeb521dd3014d33d9ef76080
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to