mklib: Extract archives into temporary directories
authorDan Nicholson <dbn.lists@gmail.com>
Fri, 8 Jan 2010 01:11:37 +0000 (17:11 -0800)
committerDan Nicholson <dbn.lists@gmail.com>
Fri, 8 Jan 2010 14:01:22 +0000 (06:01 -0800)
commita1de400e8de06a80ab140bb0fa950e990607572d
tree9052026d24efa4145629f0bf700757443e1a43fe
parentdddd5a36aced7c300bac64336a0a88e7bad62c18
mklib: Extract archives into temporary directories

When static libraries are created from other archives, objects are
extracted and then deleted when the static library is done. This can
race when there are multiple static libraries being created from the
same archives as with libmesa.a and libmesagallium.a.

Should fix this issue with parallel jobs:

make[5]: *** No rule to make target
> `../../../../../../src/mesa/libmesagallium.a', needed by
> `radeon_dri.so'. Stop

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Reported-and-Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
bin/mklib