Pārlūkot izejas kodu

bits/sysnum.h needs a cross compiler to be built. Fortunately, this
header is not needed to build gcc. Move generation of this header.
(Yann E. MORIN)

Bernhard Reutner-Fischer 17 gadi atpakaļ
vecāks
revīzija
861243899e
1 mainītis faili ar 7 papildinājumiem un 5 dzēšanām
  1. 7 5
      Makefile.in

+ 7 - 5
Makefile.in

@@ -91,6 +91,12 @@ headers: include/bits/uClibc_config.h
 			$(LN) -fs $$i .; \
 		done; \
 	fi
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+	$(MAKE) -C extra/locale locale_headers
+endif
+
+
+pregen: headers
 	$(Q)\
 	set -e; \
 	cd $(top_builddir); \
@@ -102,11 +108,7 @@ headers: include/bits/uClibc_config.h
 	else \
 		mv -f $$tmp include/bits/sysnum.h; \
 	fi
-ifeq ($(UCLIBC_HAS_LOCALE),y)
-	$(MAKE) -C extra/locale locale_headers
-endif
 
-pregen: headers
 
 install: install_runtime install_dev
 
@@ -114,7 +116,7 @@ install: install_runtime install_dev
 RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX)lib $(RUNTIME_PREFIX)lib)
 
 # Installs header files.
-install_headers:
+install_headers: headers
 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
 	printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
 	$(TAR) -chf - -X tar_exclude include \