This is the mail archive of the
mailing list for the Cygwin project.
Re: dlltool not make -j2 friendly?
On Sun, Nov 04, 2001 at 12:47:00AM -0500, Charles Wilson wrote:
>Urk. No, dlltool.c has the following snippet:
>#define TMP_ASM "dc.s"
>#define TMP_HEAD_S "dh.s"
>#define TMP_HEAD_O "dh.o"
>#define TMP_TAIL_S "dt.s"
>#define TMP_TAIL_O "dt.o"
>#define TMP_STUB "ds"
>Looks pretty ugly. I mean, you *could*
> #define TMP_ASM mktemp("dcXXXXXX.s")
>or something, but then you're not error checking the result...
I added a '-t' option in my source tree to allow a savvy dlltool user to
specify the prefix for the above TMP_* defines above:
dlltool -t '/tmp/foo' ...
Of course, this isn't a solution since Makefiles can't rely on the fact
that the current tools are available, I guess.
I also tried creating individual temporary directories for each dlltool
invocation. That was really slow.
Eventually, I just decided on adding:
to the Makefile.in.