OSDN Git Service

build: Fix infinite loop when no threading support is enabled
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Sun, 25 Apr 2010 14:15:26 +0000 (16:15 +0200)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Sun, 25 Apr 2010 17:55:56 +0000 (19:55 +0200)
The build loops forever due to when invoking make $(pregen-headers-y)
and $(pregen-headers-y) is empty (no thread support).
Parallel build should continue to work as well.
It fixes Bugzilla #1633.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Makefile.in

index 1dafc1a..a6fdc60 100644 (file)
@@ -159,8 +159,7 @@ headers-y += $(target-headers-sysdep)
 
 headers: $(top_builddir)include/bits/uClibc_config.h $(top_builddir)include/bits/sysnum.h
 subdirs: $(addprefix $(top_builddir),$(subdirs))
-pregen-headers: headers
-       $(Q)$(MAKE) $(pregen-headers-y)
+pregen-headers: headers $(pregen-headers-y)
 pregen: pregen-headers subdirs
        $(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