From 143b7505a2cc505e94bde9b82cad4f695d15433d Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 10 Sep 2014 22:18:55 +0200 Subject: nptl: rephrase *.sym handling Avoids circular dependency warning from make by generating the .h directly from the .sym files, elimination intermediate files. Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/Makefile.in | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'libpthread/nptl/Makefile.in') diff --git a/libpthread/nptl/Makefile.in b/libpthread/nptl/Makefile.in index 000882289..c619f982c 100644 --- a/libpthread/nptl/Makefile.in +++ b/libpthread/nptl/Makefile.in @@ -92,19 +92,12 @@ $(top_builddir)lib/libpthread.a: $(libpthread-a-y) $(Q)$(RM) $@ $(do_ar) -# -# Create 'pthread-errnos.h' header file. -# -CFLAGS-gen_pthread-errnos.c = -S - -$(libpthread_OUT)/gen_pthread-errnos.c: $(libpthread_DIR)/pthread-errnos.sym | $(libpthread_OUT) - $(do_awk) $(top_srcdir)extra/scripts/gen-as-const.awk $< > $@ - -$(libpthread_OUT)/gen_pthread-errnos.s: $(libpthread_OUT)/gen_pthread-errnos.c | headers - $(compile.c) -libpthread-generated-y += $(libpthread_OUT)/gen_pthread-errnos.s -$(libpthread_OUT)/pthread-errnos.h: $(libpthread_OUT)/gen_pthread-errnos.s - $(do_sed) $(PTHREAD_GENERATE_MANGLE) $< > $@ +$(libpthread_OUT)/pthread-errnos.h: $(top_srcdir)extra/scripts/gen-as-const.awk | headers +$(libpthread_OUT)/pthread-errnos.h: $(libpthread_DIR)/pthread-errnos.sym + @$(disp_gen) + $(do_awk) $(top_srcdir)extra/scripts/gen-as-const.awk $< \ + | $(CC) $(CFLAGS) -x c - -S -o - \ + | $(SED) $(PTHREAD_GENERATE_MANGLE) > $@ @if test ! -s $@ ; then rm -f $@ ; false ; fi pregen-headers-$(UCLIBC_HAS_THREADS_NATIVE) += $(libpthread_OUT)/pthread-errnos.h @@ -132,7 +125,6 @@ headers_clean-y += HEADERCLEAN_libpthread/nptl HEADERCLEAN_libpthread/nptl: $(do_rm) $(nptl_headers_bootstrap) \ - $(addprefix $(libpthread_OUT)/gen_pthread-errnos., c s) \ $(libpthread_OUT)/pthread-errnos.h CLEAN_libpthread/nptl: -- cgit v1.2.3