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


Commits:
a7538da2 by kpcyrd at 2024-02-11T16:35:31+01:00
do not use fortification level 3

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -46,6 +46,10 @@ build() {
     --with-mlx5-dv
   )
 
+  # 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}"
+
   cd $_name-$pkgver
   ./autogen.sh
   # NOTE: upstream suggests running ./contrib/configure-release instead of
@@ -58,6 +62,10 @@ build() {
 }
 
 package() {
+  # 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 DESTDIR="$pkgdir" install -C $_name-$pkgver
 
   # install the license



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openucx/-/commit/a7538da2842a39864e58037716f49729567c97a6

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


Reply via email to