diff options
author | L. E. Segovia <amy@centricular.com> | 2024-10-23 01:36:09 +0000 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2024-10-24 12:27:25 +0000 |
commit | 14e16654923dac7025411122019228feb528235a (patch) | |
tree | a17143f6fd4d7b3ab15532cb3ad47d7cdd841cc6 /recipes | |
parent | 8529e360a0a9181ca5f13b7abe7b27ca08db9c40 (diff) |
x265: Work around MinGW cross-compiler omitting the default aliases
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1602>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/x265.recipe | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes/x265.recipe b/recipes/x265.recipe index 4fa7499e..706bdaea 100644 --- a/recipes/x265.recipe +++ b/recipes/x265.recipe @@ -106,7 +106,14 @@ class Recipe(recipe.Recipe): logfile=self.logfile, ) else: - ar = shutil.which('ar') + if self.config.variants.mingw: + ar = os.path.join( + self.config.toolchain_prefix, + 'bin', + f'{self.config.tools_prefix}ar' + ) + else: + ar = shutil.which('ar') with tempfile.TemporaryDirectory() as tmpdir: whole_lib = os.path.join(self.config.libdir, 'libx265.a') shutil.copy(whole_lib, os.path.join(tmpdir, 'libx265-8bit.a')) |