[uclibc-ng-devel] [PATCH] Fix make rule for generation of "ucontext_i.h" when building in separate directory (with O=)

sorganov at gmail.com sorganov at gmail.com
Thu Jan 26 12:33:18 CET 2017


From: Sergey Organov <sorganov at gmail.com>

For me it was enabling of UCLIBC_SUSV3_LEGACY=y that broke compilation
in separate directory.
---
 libc/sysdeps/linux/Makefile.commonarch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/sysdeps/linux/Makefile.commonarch b/libc/sysdeps/linux/Makefile.commonarch
index f8dc17d..88309e4 100644
--- a/libc/sysdeps/linux/Makefile.commonarch
+++ b/libc/sysdeps/linux/Makefile.commonarch
@@ -47,7 +47,7 @@ HEADERCLEAN_$(subst $(top_builddir),,$(ARCH_OUT)):
 endif
 
 $(ARCH_OUT)/ucontext_i.h: $(top_srcdir)extra/scripts/gen-as-const.awk
-$(ARCH_OUT)/ucontext_i.h: $(ARCH_OUT)/ucontext_i.sym
+$(ARCH_OUT)/ucontext_i.h: $(ARCH_DIR)/ucontext_i.sym
 	@$(disp_gen)
 	$(do_awk) $(top_srcdir)extra/scripts/gen-as-const.awk $< \
 	| $(CC) $(CFLAGS) -x c - -S -o - \
-- 
2.10.0.1.g57b01a3



More information about the devel mailing list