X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=tools%2FMakefile;h=0a29147847451be688fbaa041ecabc000c0eb37a;hp=f4ca1cf3bcb989dcb5a8b2702f1aa522f1f90852;hb=19d829fa60fc4e6df514a046142faaaf9fc8185d;hpb=8467faef7fce8c5faad7224b7737a58e16c52186 diff --git a/tools/Makefile b/tools/Makefile index f4ca1cf3bc..0a29147847 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -155,6 +155,7 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_OBJ_FILES-y)) # # Use native tools and options # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps +# Define _GNU_SOURCE to obtain the getline prototype from stdio.h # HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \ -idirafter $(SRCTREE)/include \ @@ -164,7 +165,8 @@ HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \ -I $(SRCTREE)/tools \ -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \ -DUSE_HOSTCC \ - -D__KERNEL_STRICT_NAMES + -D__KERNEL_STRICT_NAMES \ + -D_GNU_SOURCE all: $(obj).depend $(BINS) $(LOGO-y) subdirs