This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[PATCH] Can't run w32api/Makefile.in with -jN
- To: cygwin-patches at cygwin dot com, mingw-dvlpr at lists dot sourceforge dot net
- Subject: [PATCH] Can't run w32api/Makefile.in with -jN
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sun, 4 Nov 2001 00:28:00 -0500
- Reply-To: cygwin-patches at cygwin dot com
The current version of dlltool creates non-unique temporary filenames in
the current directory. That means that 2+ dlltools cannot be operating
in the current directory without interfering with each other.
I first tried to work around this problem by having the Makefile create
temporary directories, cding to that directory, and building the
libraries there. Unfortunately, that slowed down w32api's make
noticeably. It didn't seem like slowing down builds for the sake
of -j2 was really worthwhile.
So, instead, I've checked into the cygwin repository a compromise
"solution" to this problem. I've just added a target to the Makefile
which instructs Make to ignore the -j2 setting.
I've got a trivial patch to dlltool ready to go which will avoid
this misfeature in dlltool but, for now, I think this is necessary
if we want to build w32api with -j2 without causing weird behavior.
cgf
2001-11-04 Christopher Faylor <cgf@redhat.com>
* lib/Makefile.in: Add .NOTPARALLEL target since dlltool cannot run in
parallel invocations.
Index: lib/Makefile.in
===================================================================
RCS file: /cvs/uberbaum/winsup/w32api/lib/Makefile.in,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile.in
--- Makefile.in 2001/09/19 23:56:12 1.17
+++ Makefile.in 2001/11/04 05:20:59
@@ -115,6 +115,8 @@ res.rc test.c kernel32.c
DISTFILES = Makefile.in $(DEF_FILES) $(SOURCES)
+.NOTPARALLEL:
+
# targets
all: $(LIBS) $(EXTRA_OBJS)