summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-03-19 13:20:47 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-05-01 10:12:40 +0100
commit72b8b5a19a3087ffa5556b5d5b3fc13300ae35d5 (patch)
treedef77aa9dbcab3895f54c50099d7973d8c0e2e38 /async.c
parent42fe1c245f0239ebcdc084740a1777ac3699d071 (diff)
downloadqemu-72b8b5a19a3087ffa5556b5d5b3fc13300ae35d5.tar.gz
configure: Fix creation of symbolic links for MinGW toolchain
The MinGW toolchain on w32/w64 hosts does not create symbolic links, but implements 'ln -s' similar to 'cp -r'. In incremental out of tree builds, this resulted in files which were not updated when their counterparts in the QEMU source tree changed. Especially for Makefile* this happened very often. With this patch, the 'symlinked' files are now always updated for out of tree builds. Similar code was already used for the symbolic link of libcacard/Makefile. The symlink macro always removes the target before it is created again, therefore the rm command for libcacard/Makefile was redundant and is removed now. Macro symlink is also used with directories. To remove them on w32 hosts, a recursive rm is needed. v2: Quote arguments in shell function symlink, and also quote any argument which is passed to symlink and which contains macros. This should reduce the chance of accidents caused by rm -rf. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'async.c')
0 files changed, 0 insertions, 0 deletions