kpcyrd pushed to branch main at Arch Linux / Packaging / Packages / singular


Commits:
ece24a89 by kpcyrd at 2023-10-10T13:18:46+02:00
do not use fortification level 3

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -27,6 +27,11 @@ options=(!zipman)
 
 build() {
   cd singular-${_majver//-/.}
+
+  # this uses malloc_usable_size, which is incompatible with fortification 
level 3
+  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+
   ./configure \
     --prefix=/usr \
     --libexecdir=/usr/lib \
@@ -43,6 +48,11 @@ build() {
 
 check() {
   cd singular-${_majver//-/.}
+
+  # this uses malloc_usable_size, which is incompatible with fortification 
level 3
+  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+
   make check
 }
   



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/singular/-/commit/ece24a89ce1a46e5d9384257091082ebfd160c13

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


Reply via email to