diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-06-06 16:57:00 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-06-07 09:21:19 +0200 |
commit | ec5b06d717bc49d8ad4dc5e9760e8f1f2a2a371c (patch) | |
tree | 3d76e7a77112597a40abc27b137d364e2e36a0e6 | |
parent | 25f27a4f7160d077d6992e811021b4bc3a82abc1 (diff) |
configure: ensure directory exists when creating symlink
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -42,6 +42,7 @@ compile_prog() { # symbolically link $1 to $2. Portable version of "ln -sf". symlink() { rm -rf "$2" + mkdir -p "$(dirname "$2")" ln -s "$1" "$2" } @@ -3454,14 +3455,12 @@ if test -f ${config_host_ld}~ ; then fi for d in libdis libdis-user; do - mkdir -p $d symlink "$source_path/Makefile.dis" "$d/Makefile" echo > $d/config.mak done # use included Linux headers if test "$linux" = "yes" ; then - mkdir -p linux-headers case "$cpu" in i386|x86_64) symlink "$source_path/linux-headers/asm-x86" linux-headers/asm |