瀏覽代碼

build: Fix infinite loop when no threading support is enabled

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>
Carmelo Amoroso 15 年之前
父節點
當前提交
ff5e4de708
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Makefile.in

+ 1 - 2
Makefile.in

@@ -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