This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] fix parallel build for version.cc and winver.o
- From: Michael Haubenwallner <michael dot haubenwallner at ssi-schaefer dot com>
- To: cygwin-patches at cygwin dot com
- Cc: Michael Haubenwallner <michael dot haubenwallner at ssi-schaefer dot com>
- Date: Thu, 16 Feb 2017 16:57:40 +0100
- Subject: [PATCH] fix parallel build for version.cc and winver.o
- Authentication-results: sourceware.org; auth=none
Creating both version.cc and winver.o at once really should run once only.
---
winsup/cygwin/Makefile.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index bffb24a..c8652b0 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -747,10 +747,12 @@ libacl.a: ${LIB_NAME} sec_posixacl.o
${EXTRALIBS}: lib%.a: %.o
$(AR) cru $@ $?
-version.cc winver.o: mkvers.sh include/cygwin/version.h winver.rc $(DLL_OFILES)
+winver.o: mkvers.sh include/cygwin/version.h winver.rc $(DLL_OFILES)
@echo "Making version.cc and winver.o";\
/bin/sh ${word 1,$^} ${word 2,$^} ${word 3,$^} $(WINDRES) ${CFLAGS} $(addprefix -I,${CCWRAP_SYSTEM_HEADERS} ${CCWRAP_DIRAFTER_HEADERS})
+version.cc: winver.o
+
Makefile: ${srcdir}/Makefile.in
/bin/sh ./config.status
--
2.10.2