summaryrefslogtreecommitdiff
path: root/recipes-toolchain/mingw-w64-headers.recipe
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-02-21 07:08:06 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-02-25 05:29:18 +0530
commitfbaf3bc4ae8c6253f560d3da2ab4dee746cfcb09 (patch)
tree07005a072389b399b4031b2a441a3b76f3fbb5ef /recipes-toolchain/mingw-w64-headers.recipe
parent151e8c47edf2df402bd46eb66f50ff690d54905c (diff)
cerbero/build: Workaround MSYS trying to be too smart
Finally figured out the actual issue that I was trying to solve in f38df32d8 and 78f06dd405. Paths like `c:/foobar` (lowercase drive letter) are considered to be a POSIX path list, so `c:/foobar/` becomes `c;C:\foobar`: http://mingw.org/wiki/Posix_path_conversion This will happen anytime we try to pass a path as a command-line argument. We used to work-around this by using `to_unixpath()`, but that's just sinking deeper into dependence on broken shell behaviour. This happens now because we're passing includes in CFLAGS, CXXFLAGS, CPPFLAGS, etc. So let's just bypass the shell entirely by constructing a list. As a side-effect, this is another step towards being able to run Cerbero from a directory with spaces in it. For now, we'll convert `config_sh` to a list when not using an Autotools configure. Luckily, we don't need to pass any paths as arguments to it anyway. When running other stages, we now always use a list instead of a string. Hopefully the fallout is small and obvious for people using forks of Cerbero.
Diffstat (limited to 'recipes-toolchain/mingw-w64-headers.recipe')
-rw-r--r--recipes-toolchain/mingw-w64-headers.recipe2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-toolchain/mingw-w64-headers.recipe b/recipes-toolchain/mingw-w64-headers.recipe
index f32b1f47..c3906853 100644
--- a/recipes-toolchain/mingw-w64-headers.recipe
+++ b/recipes-toolchain/mingw-w64-headers.recipe
@@ -16,7 +16,7 @@ class Recipe(recipe.Recipe):
self._sysroot = os.path.join(self.config.prefix, self.host, 'sysroot')
self.configure_options += ' --host=%s' % self.host
self.configure_options += ' --with-sysroot=%s ' % self._sysroot
- self.make_install = 'make install DESTDIR=%s' % self._sysroot
+ self.make_install = ['make', 'install', 'DESTDIR=' + self._sysroot]
self.build_dir = os.path.join(self.config.sources,
'mingw-w64-%s' % self.version)
self.make_dir = os.path.join(self.build_dir, 'mingw-w64-headers')