diff mbox

ficl: fix build with gcc 7

Message ID 20170806105608.24535-1-francois.perrad@gadz.org
State Accepted
Headers show

Commit Message

Francois Perrad Aug. 6, 2017, 10:56 a.m. UTC
same issue seen with squashfs, gcc7 with -Os remove the code of inline functions.

see http://autobuild.buildroot.org/results/d72/d72a7e9775a10bc884b9953dd2eba3ad32100cca

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/ficl/ficl.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arnout Vandecappelle Aug. 9, 2017, 9:48 p.m. UTC | #1
On 06-08-17 12:56, Francois Perrad wrote:
> same issue seen with squashfs, gcc7 with -Os remove the code of inline functions.
> 
> see http://autobuild.buildroot.org/results/d72/d72a7e9775a10bc884b9953dd2eba3ad32100cca
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

 I extended the commit message a bit and applied to master, thanks. I was first
going to suggest to fix it with a patch instead of with -fgnu89-inline, but then
I saw that upstream has been dead for 7 years...

 Regards,
 Arnout
diff mbox

Patch

diff --git a/package/ficl/ficl.mk b/package/ficl/ficl.mk
index 5d2d600a8..af900fa2c 100644
--- a/package/ficl/ficl.mk
+++ b/package/ficl/ficl.mk
@@ -39,7 +39,7 @@  endif
 
 define FICL_BUILD_CMDS
 	$(MAKE) -C $(@D) -f Makefile.linux $(TARGET_CONFIGURE_OPTS) \
-		CFLAGS="$(TARGET_CFLAGS) -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
+		CFLAGS="$(TARGET_CFLAGS) -fgnu89-inline -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
 endef
 
 define FICL_INSTALL_STAGING_CMDS