diff --git a/recipes/openssl/1.x.x/conanfile.py b/recipes/openssl/1.x.x/conanfile.py index 9dafdd8695067..afe3f8e68d4e9 100644 --- a/recipes/openssl/1.x.x/conanfile.py +++ b/recipes/openssl/1.x.x/conanfile.py @@ -656,6 +656,10 @@ def _create_targets(self): if self.options.get_safe("fPIC", True): shared_cflag='shared_cflag => "-fPIC",' + if self.settings.os in ["iOS", "tvOS", "watchOS"] and self.conf.get("tools.apple:enable_bitcode", check_type=bool): + cflags.append("-fembed-bitcode") + cxxflags.append("-fembed-bitcode") + config = config_template.format(targets=targets, target=self._target, ancestor=ancestor, diff --git a/recipes/openssl/3.x.x/conanfile.py b/recipes/openssl/3.x.x/conanfile.py index 05de257a52c5f..d92e93ed55602 100644 --- a/recipes/openssl/3.x.x/conanfile.py +++ b/recipes/openssl/3.x.x/conanfile.py @@ -506,6 +506,10 @@ def _create_targets(self): if self.options.get_safe("fPIC", True): shared_cflag = 'shared_cflag => "-fPIC",' + if self.settings.os in ["iOS", "tvOS", "watchOS"] and self.conf.get("tools.apple:enable_bitcode", check_type=bool): + cflags.append("-fembed-bitcode") + cxxflags.append("-fembed-bitcode") + config = config_template.format( targets=targets, target=self._target,