[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclibc-cvs
Subject:    [git commit nptl] pregen: Fix the parallel build problem in pregen target
From:       raj.khem () gmail ! com (Khem Raj)
Date:       2010-02-10 14:24:03
Message-ID: 20100224002414.BB48B77716 () busybox ! osuosl ! org
[Download RAW message or body]


commit: http://git.uclibc.org/uClibc/commit/?id=046035ecde92262d96eff2192ba3cda716f04909
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

* pregen-headers really need the headers to get themselves generated.
  so we create explicit dependency and invoke make as an action on
  pregen. This fixes the parallel build issue for better.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 Makefile.in |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index d0c7404..5c20272 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -16,9 +16,6 @@ noconfig_targets := menuconfig config oldconfig silentoldconfig randconfig \
 
 include $(top_srcdir)Rules.mak
 sub_headers := headers
-
-pregen-headers-y := $(top_builddir)include/bits/sysnum.h
-
 ifndef KCONFIG_CONFIG
 KCONFIG_CONFIG := $(top_builddir).config
 endif
@@ -160,9 +157,10 @@ headers_clean-y += sysdep_common_headers-clean
 # libc/sysdeps/linux/Makefile.commonarch to headers-y
 headers-y += $(target-headers-sysdep)
 
-headers: $(top_builddir)include/bits/uClibc_config.h
+headers: $(top_builddir)include/bits/uClibc_config.h $(top_builddir)include/bits/sysnum.h
 subdirs: $(addprefix $(top_builddir),$(subdirs))
-pregen: headers $(pregen-headers-y) subdirs
+pregen: headers subdirs
+	$(Q)$(MAKE) $(pregen-headers-y)
 	$(Q)$(if $(UCLIBC_HAS_LOCALE),$(MAKE) -C extra/locale locale_headers)
 
 $(top_builddir)include/bits/sysnum.h: $(top_srcdir)extra/scripts/gen_bits_syscall_h.sh
-- 
1.6.3.3


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic