[Buildroot] [PATCH v2 1/3] package/feh: Fix build issue with some older cross-compilers

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Nov 15 21:09:35 UTC 2017


Hello,

On Wed, 15 Nov 2017 14:27:52 +0100, Petr Vorel wrote:

>  define FEH_BUILD_CMDS
> -	$(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
> -		-C $(@D) all
> +	$(TARGET_MAKE_ENV) CFLAGS="$(TARGET_CFLAGS) -std=gnu11" $(MAKE1) \

std=gnu11 was only added in gcc 4.7, so using this would break the
build with gcc < 4.7. According to the error message, only C99 is
needed, so could you try instead -std=c99, which is available since at
least gcc 4.2 ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list