diff options
author | Marty E. Plummer <hanetzer@startmail.com> | 2018-07-26 03:07:37 -0500 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-07-31 07:44:15 +0100 |
commit | b8ff8146edd5e182d61756c7fd1d99239d6100d4 (patch) | |
tree | 3a2e7df0b7885df08ee7017c23e8672e6364e6e6 /wrappers | |
parent | crossdev: Make armv[67] default to hardfloat following eclass change (diff) | |
download | crossdev-b8ff8146edd5e182d61756c7fd1d99239d6100d4.tar.gz crossdev-b8ff8146edd5e182d61756c7fd1d99239d6100d4.tar.bz2 crossdev-b8ff8146edd5e182d61756c7fd1d99239d6100d4.zip |
wrappers: prevent use of wine to convert between path types
libtool.m4 uses lt_cv_to_host_file_cmd to store the name of a function
used to convert between unix and win32 path styles; when doing a linux to
mingw cross-compilation it ends up with func_convert_file_nix_to_w32
which uses the winepath utility to do the job. However, using that tool
will create a wineprefix in ${CATEGORY}/${P}/homedir and potentially
cause access violations in sandbox.
Bug: https://bugs.gentoo.org/631492
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'wrappers')
-rwxr-xr-x | wrappers/site/config.site | 1 | ||||
-rw-r--r-- | wrappers/site/mingw | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/wrappers/site/config.site b/wrappers/site/config.site index 39cadf8..05c7823 100755 --- a/wrappers/site/config.site +++ b/wrappers/site/config.site @@ -25,6 +25,7 @@ config_site_names() { case ${CHOST} in *-linux-*) sites="${sites} linux ${site_arch}-linux" ;; *-darwin*) sites="${sites} darwin ${site_arch}-darwin" ;; + mingw*|*-mingw*) sites="${sites} mingw ${site_arch}-mingw" ;; esac case ${CHOST} in diff --git a/wrappers/site/mingw b/wrappers/site/mingw new file mode 100644 index 0000000..f67229a --- /dev/null +++ b/wrappers/site/mingw @@ -0,0 +1,2 @@ +# prevent use of wine to convert windows/unix pathnames +lt_cv_to_host_file_cmd=func_convert_file_noop |