diff --git a/alarm/xf86-video-armsoc-rockchip/PKGBUILD b/alarm/xf86-video-armsoc-rockchip/PKGBUILD index 799abb850..8519a2f38 100644 --- a/alarm/xf86-video-armsoc-rockchip/PKGBUILD +++ b/alarm/xf86-video-armsoc-rockchip/PKGBUILD @@ -4,7 +4,7 @@ buildarch=4 pkgname=xf86-video-armsoc-rockchip pkgver=261.67d4cff -pkgrel=4 +pkgrel=5 pkgdesc='X.org graphics driver for ARM graphics - Rockchip' arch=('armv7h') url="https://github.com/mmind/xf86-video-armsoc" @@ -36,6 +36,13 @@ prepare() { 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} + CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS" ./autogen.sh --prefix=/usr --with-drmmode=rockchip make