summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in3
-rw-r--r--extra/locale/Makefile.in3
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 2515880c8..8f65678dd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -93,6 +93,9 @@ headers: include/bits/uClibc_config.h
$(RM) include/bits/sysnum.h; \
mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
fi
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+ $(MAKE) locale_headers
+endif
pregen: headers
diff --git a/extra/locale/Makefile.in b/extra/locale/Makefile.in
index 0b17ffb1e..deaa74110 100644
--- a/extra/locale/Makefile.in
+++ b/extra/locale/Makefile.in
@@ -38,7 +38,8 @@ locale_OBJ := $(locale_OUT)/locale_data.o
CFLAGS-locale_data.c := -D__WCHAR_ENABLED -I$(locale_OUT) -I$(locale_DIR)
-headers-$(UCLIBC_HAS_LOCALE) += locale_headers
+# produces a loop
+#headers-$(UCLIBC_HAS_LOCALE) += locale_headers
libc-a-$(UCLIBC_HAS_LOCALE) += $(locale_OBJ)
libc-so-$(UCLIBC_HAS_LOCALE) += $(locale_OBJ:.o=.os)