Date: Friday, August 11, 2017 @ 09:43:00
  Author: lcarlier
Revision: 301900

upgpkg: xf86-video-vesa 2.3.4-4

prevent FS#54845

Modified:
  xf86-video-vesa/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-08-11 09:39:57 UTC (rev 301899)
+++ PKGBUILD    2017-08-11 09:43:00 UTC (rev 301900)
@@ -3,7 +3,7 @@
 
 pkgname=xf86-video-vesa
 pkgver=2.3.4
-pkgrel=3
+pkgrel=4
 pkgdesc="X.org vesa video driver"
 arch=(i686 x86_64)
 license=('custom')
@@ -26,6 +26,14 @@
 
 build() {
   cd ${pkgname}-${pkgver}
+
+  # 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}
+
   ./configure --prefix=/usr
   make
 }

Reply via email to