[arch-commits] Commit in pion/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Fri May 13 20:50:31 UTC 2016


    Date: Friday, May 13, 2016 @ 22:50:31
  Author: foutrelis
Revision: 175260

Fix build with GCC 6

Modified:
  pion/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-13 20:45:54 UTC (rev 175259)
+++ PKGBUILD	2016-05-13 20:50:31 UTC (rev 175260)
@@ -15,18 +15,24 @@
 source=($pkgname-$pkgver.zip::https://github.com/cloudmeter/pion/archive/$pkgver.zip)
 md5sums=('76a96dd4d34d21e41cbb2328564cba1a')
 
-build() {
+prepare() {
   cd "$srcdir/$pkgname-$pkgver"
 
-  sh autogen.sh
+  ./autogen.sh
 
   # override configure bug (forces debug even when nobody asked for it)
   sed -i "s/ -ggdb//g" configure
   # override Makefile bug
   sed -i "/docs:/ s/doxygen-doc//" Makefile.in
+}
 
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # Fix build with GCC 6
+  CXXFLAGS+=' -std=gnu++98'
+
   ./configure --prefix=/usr --with-plugins=/usr/lib/pion/plugins --disable-doxygen-doc
-
   make
 }
 



More information about the arch-commits mailing list