configure: ensure directory exists when creating symlink
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
25f27a4f71
commit
ec5b06d717
3
configure
vendored
3
configure
vendored
@ -42,6 +42,7 @@ compile_prog() {
|
|||||||
# symbolically link $1 to $2. Portable version of "ln -sf".
|
# symbolically link $1 to $2. Portable version of "ln -sf".
|
||||||
symlink() {
|
symlink() {
|
||||||
rm -rf "$2"
|
rm -rf "$2"
|
||||||
|
mkdir -p "$(dirname "$2")"
|
||||||
ln -s "$1" "$2"
|
ln -s "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3454,14 +3455,12 @@ if test -f ${config_host_ld}~ ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for d in libdis libdis-user; do
|
for d in libdis libdis-user; do
|
||||||
mkdir -p $d
|
|
||||||
symlink "$source_path/Makefile.dis" "$d/Makefile"
|
symlink "$source_path/Makefile.dis" "$d/Makefile"
|
||||||
echo > $d/config.mak
|
echo > $d/config.mak
|
||||||
done
|
done
|
||||||
|
|
||||||
# use included Linux headers
|
# use included Linux headers
|
||||||
if test "$linux" = "yes" ; then
|
if test "$linux" = "yes" ; then
|
||||||
mkdir -p linux-headers
|
|
||||||
case "$cpu" in
|
case "$cpu" in
|
||||||
i386|x86_64)
|
i386|x86_64)
|
||||||
symlink "$source_path/linux-headers/asm-x86" linux-headers/asm
|
symlink "$source_path/linux-headers/asm-x86" linux-headers/asm
|
||||||
|
Loading…
Reference in New Issue
Block a user