From: Baruch Siach Date: Thu, 1 Oct 2015 22:06:31 +0000 (+0300) Subject: vtun: fix gcc5 build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea3485d085200b82da6e6cc79ea75c01128a1df9;p=buildroot.git 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 --- 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))