mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 09:06:19 +00:00
libelf: Cygwin fix for UNC paths
If destdir was / and prefix began with / then we would attempt to install libelf to a path beginning with // which is a UNC path on Cygwin. This is generally incorrect. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
This commit is contained in:
parent
644522fcd0
commit
24d17220a1
@ -135,6 +135,13 @@ do_libelf_backend() {
|
||||
CT_DoExecLog ALL ${make}
|
||||
|
||||
CT_DoLog EXTRA "Installing libelf"
|
||||
|
||||
# Guard against $destdir$prefix == //
|
||||
# which is a UNC path on Cygwin/MSYS2
|
||||
if [[ ${destdir} == / ]] && [[ ${prefix} == /* ]]; then
|
||||
destdir=
|
||||
fi
|
||||
|
||||
CT_DoExecLog ALL ${make} instroot="${destdir}" install
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user