mv -f $$tmp include/bits/sysnum.h; \
fi
ifeq ($(UCLIBC_HAS_LOCALE),y)
- $(MAKE) locale_headers
+ $(MAKE) -C extra/locale locale_headers
endif
pregen: headers
BUILD_CFLAGS-gen_ldc += -D__WCHAR_ENABLED=1
endif
+BUILD_CFLAGS-gen_locale := -D_GNU_SOURCE
+
DEPH-locale := $(top_builddir)include/bits/sysnum.h
DEPH-gen_locale := c8tables.h
DEPH-gen_ldc := c8tables.h wctables.h locale_tables.h locale_collate.h
$(locale_OUT)/uClibc_locale_data.h: $(locale_OUT)/lt_defines.h $(locale_OUT)/c8tables.h $(locale_OUT)/wctables.h $(locale_DIR)/locale_mmap.h | $(locale_SRC)
grep -v "define __LC" $< > $@
- cat $(wordlist 2,3,4,$^) >> $@
+ cat $(wordlist 2,4,$^) >> $@
endif