mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
configure: Use -ef to compare paths
configure checks if it is executed in the source directory by comparing the literal paths, but there may be multiple representations of a directory due to symbolic links. Use the -ef operator to tell if they point to the same directory. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Link: https://lore.kernel.org/r/20241111-p-v1-1-001006c68b7e@daynix.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6607b77b94
commit
ebcf886d88
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -13,7 +13,7 @@ export CCACHE_RECACHE=yes
|
|||
# make source path absolute
|
||||
source_path=$(cd "$(dirname -- "$0")"; pwd)
|
||||
|
||||
if test "$PWD" = "$source_path"
|
||||
if test "$PWD" -ef "$source_path"
|
||||
then
|
||||
echo "Using './build' as the directory for build output"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue