diff --git a/alarm/xf86-video-armsoc-meson/PKGBUILD b/alarm/xf86-video-armsoc-meson/PKGBUILD index 9f8daa160..11df8aac0 100644 --- a/alarm/xf86-video-armsoc-meson/PKGBUILD +++ b/alarm/xf86-video-armsoc-meson/PKGBUILD @@ -5,7 +5,7 @@ buildarch=8 pkgname=xf86-video-armsoc-meson pkgver=0.5 -pkgrel=2 +pkgrel=3 pkgdesc="X.org Mali video driver for Meson platforms" arch=('aarch64') license=('MIT') @@ -20,6 +20,14 @@ sha256sums=('SKIP' build() { cd $pkgname + + # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf + # With them, module fail to load with undefined symbol. + # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845 + export CFLAGS=${CFLAGS/-fno-plt} + export CXXFLAGS=${CXXFLAGS/-fno-plt} + export LDFLAGS=${LDFLAGS/,-z,now} + LDFLAGS+=" -L/usr/lib/mali-egl" ./autogen.sh --prefix=/usr make