extra/ruby: fix

This commit is contained in:
Kevin Mihelich 2024-09-11 23:30:19 +00:00
parent d67244e125
commit 0b838cc74c

View file

@ -10,6 +10,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - generalize arch-dependent removal of gem remains # - generalize arch-dependent removal of gem remains
# - add -Wno-incompatible-pointer-types to C(XX)FLAGS
pkgname=( pkgname=(
ruby ruby
@ -165,8 +166,8 @@ build() {
cd "ruby-${pkgver}" cd "ruby-${pkgver}"
# this uses malloc_usable_size, which is incompatible with fortification level 3 # this uses malloc_usable_size, which is incompatible with fortification level 3
export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2} -Wno-incompatible-pointer-types"
export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2} -Wno-incompatible-pointer-types"
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \