Hi Ceriel,
C. Jacobs wrote,

> Hi Waldemar,
> 
> After editing toolchain/uClibc/headers/Makefile:
> > $ cat toolchain/uClibc/headers/Makefile | grep UCLIBC_EXTRA_CFLAGS -a9
> > 
> > define Host/Install
> >     PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
> >             PREFIX="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/" \
> >             DEVEL_PREFIX=/ \
> >             RUNTIME_PREFIX="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/" \
> >             HOSTCC="$(HOSTCC)" \
> >             CC="$(TARGET_CC)" \
> >             CPU_CFLAGS="$(TARGET_CFLAGS)" \
> >             UCLIBC_EXTRA_CFLAGS=" -I../../include" \
> >             ARCH="$(CONFIG_ARCH)" \
> >             pregen \
> >             install_headers
> > endef
> > 
> > $(eval $(call HostBuild))
> 
> 
> issuing “$ make clean", and run “$ make" again, I see the flag, but the 
> “make” output is still stopping with the error:
> 
> However the Makefile result at 
> /Volumes/Case-sensitive/Entware-ng/build_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.16/uClibc-ng-1.0.16/extra/locale,
>  is missing this -I../../include flag:
> 
> > /Applications/Xcode.app/Contents/Developer/usr/bin/make -C extra/locale 
> > locale_headers
> > gcc ../../extra/locale/gen_locale.c  -o ../..//extra/locale/gen_locale    
> > -Os  -D_GNU_SOURCE -I../..//extra/locale
> 
> 
> Possibly I haven’t yet understood how to insert extra CFLAGS for uClibc 
> headers, or the UCLIBC_EXTRA_CFLAGS flag doesn’t flow down into the toolchain 
> as it should.

As mentioned earlier, UCLIBC_EXTRA_CFLAGS is only for target code.
Your problem is natively compiling gen_locale.c on your host.

best regards
 Waldemar
_______________________________________________
devel mailing list
devel@uclibc-ng.org
http://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

Reply via email to