app-misc/abook: fix building with gcc-5 (#570428)
authorEray Aslan <eras@gentoo.org>
Mon, 4 Jan 2016 19:33:59 +0000 (21:33 +0200)
committerEray Aslan <eras@gentoo.org>
Mon, 4 Jan 2016 19:33:59 +0000 (21:33 +0200)
Package-Manager: portage-2.2.26

app-misc/abook/abook-0.6.0_pre2.ebuild

index e383d809c9baab76da30a7d846bfce0c835267e7..e80a73b9b0de1d68e665a25555b3dc3b42c318cd 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -32,6 +32,11 @@ src_configure() {
        econf $(use_enable nls)
 }
 
+src_compile() {
+       # bug 570428
+       emake CFLAGS="${CFLAGS} -std=gnu89"
+}
+
 src_install() {
        emake DESTDIR="${D}" install || die "emake install failed"
        dodoc BUGS ChangeLog FAQ README TODO sample.abookrc || die "dodoc failed"