OSDN Git Service

Remove a loop if locales are to be built
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 6 Dec 2005 14:22:40 +0000 (14:22 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 6 Dec 2005 14:22:40 +0000 (14:22 -0000)
Makefile.in
extra/locale/Makefile.in

index 2515880..8f65678 100644 (file)
@@ -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
 
index 0b17ffb..deaa741 100644 (file)
@@ -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)