Subject: [alpine-aports] [PATCH] main/lua-stringy: fix build with gcc8

From: alpine-mips-patches <[email-masked]>
Date: Tue, 13 Nov 2018 21:03:02 +0000

Another GNU-style inline case.
---
 main/lua-stringy/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main/lua-stringy/APKBUILD b/main/lua-stringy/APKBUILD
index 04a533f929..f189a49236 100644
--- a/main/lua-stringy/APKBUILD
+++ b/main/lua-stringy/APKBUILD
@@ -3,7 +3,7 @@
 pkgname=lua-stringy
 pkgver=0.5.0
 _pkgver=${pkgver%.*}-${pkgver##*.}
-pkgrel=0
+pkgrel=1
 pkgdesc="Lua string utility library"
 url="https://github.com/brentp/lua-stringy/"
 arch="all"
@@ -39,6 +39,7 @@ prepare() {
 build() {
 	local lver; for lver in $_luaversions; do
 		msg "Building for Lua $lver..."
+		CFLAGS="$CFLAGS -std=gnu89" \
 		make -C "$builddir-$lver" \
 			CC="${CC:-gcc}" \
 			LUA_PC="lua$lver" \
-- 
2.19.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---