Browse Source

Remove a loop if locales are to be built

Peter S. Mazinger 18 years ago
parent
commit
b3f0872f22
2 changed files with 5 additions and 1 deletions
  1. 3 0
      Makefile.in
  2. 2 1
      extra/locale/Makefile.in

+ 3 - 0
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
 

+ 2 - 1
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)