From ea3485d085200b82da6e6cc79ea75c01128a1df9 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Fri, 2 Oct 2015 01:06:31 +0300 Subject: [PATCH] vtun: fix gcc5 build Add -std=gnu89 to CFLAGS to keep pre gcc5 inline function symbols visibility rules. Fixes: http://autobuild.buildroot.net/results/a7e/a7e684174b90a852318a7a8bf41c4f477d159d56/ http://autobuild.buildroot.net/results/ab0/ab01f8e0467e85322c63b81bb7e84fd251e5d556/ http://autobuild.buildroot.net/results/117/117a68bf648b050dabed8088d1165c1d7d9301f0/ and more. [Peter: add a comment explaining why] Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- package/vtun/vtun.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/vtun/vtun.mk b/package/vtun/vtun.mk index 2b64ab9efc..2a3f5481a6 100644 --- a/package/vtun/vtun.mk +++ b/package/vtun/vtun.mk @@ -14,4 +14,7 @@ VTUN_CONF_OPTS = \ --with-lzo-headers=$(STAGING_DIR)/usr/include/lzo \ --with-lzo-lib=$(STAGING_DIR)/usr/lib +# Assumes old-style gcc inline symbol visibility rules +VTUN_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu89" + $(eval $(autotools-package)) -- 2.30.2