diff --git a/recipes/onetbb/2020.x/conanfile.py b/recipes/onetbb/2020.x/conanfile.py index 8dfe37c3465d58..44e997a54e6e3f 100644 --- a/recipes/onetbb/2020.x/conanfile.py +++ b/recipes/onetbb/2020.x/conanfile.py @@ -1,3 +1,4 @@ +import glob import os import textwrap @@ -205,6 +206,9 @@ def _patch_sources(self): replace_in_file(self, linux_include, "= gcc", "= $(CC)") if self.version != "2019_u9" and self.settings.build_type == "Debug": replace_in_file(self, os.path.join(self.source_folder, "Makefile"), "release", "debug") + for inc_file in glob.glob(os.path.join(self.source_folder, "build", "*.inc")): + # Fix 'ar: two different operation options specified' due to unrecognized -m64 flag in 2020.04 + replace_in_file(self, inc_file, "LIB_LINK_FLAGS += -m64", "LIB_LINK_FLAGS += ", strict=False) def build(self): self._patch_sources()