summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:22:40 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:22:40 +0000
commitb3f0872f223b7cd3ce8f408ef0339659234d0558 (patch)
tree7610fe1169ac6a91fbbf9acfaa71f0f6486837dd
parentcce16f1d63981977fc81980f5449e70ee51775be (diff)
Remove a loop if locales are to be built
-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)