btfilter: Makefile: add -fgnu89-inline flag for gcc5

The problem is the change of the default C standard from gnu89 to gnu11
which changes the semantics of 'inline'. The issue is described in the
porting guide at https://gcc.gnu.org/gcc-5/porting_to.html.

Fix based on u-boot's commit dfc9c24

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2015-11-09 11:01:52 +01:00
parent 59cc4b79c7
commit 170a434f21
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From d631ddd830cfacf610a562b52fc953b14dff7962 Mon Sep 17 00:00:00 2001
From: Isaac Hermida <isaac.hermida@digi.com>
Date: Fri, 6 Nov 2015 17:46:33 +0100
Subject: [PATCH] add -fgnu89-inline flag for gcc5
The problem is the change of the default C standard from gnu89 to gnu11
which changes the semantics of 'inline'. The issue is described in the
Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 91659ddb788c..1e2e1d6b0584 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ override INCLUDES += -Iinclude \
# -I$(V210_DIR)/usr/include/bluetooth \
# -I$(V210_DIR)/usr/local/include/bluetooth \
-CFLAGS= -Wall -g -DABF_DEBUG
+CFLAGS= -Wall -g -DABF_DEBUG -fgnu89-inline
#LIBS= -ldbus-1 -lpthread -lbtfilt -lrt -lbluetooth
# LIBS= -ldbus-1 -lpthread -lrt -lbluetooth
--
1.9.1

View File

@ -12,6 +12,7 @@ SRC_URI = " \
file://0001-enable-libnl3.patch \
file://0002-cross-compile.patch \
file://0003-abtfilt_wan-Rewrite-the-netlink-listener.patch \
file://0004-add-fgnu89-flag-for-gcc5.patch \
file://bluez-init \
"