summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-07-07 21:34:13 +0530
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-07-07 16:33:47 +0000
commit7840995091d08e6fc5bd44bf949022ca7b059bf1 (patch)
tree5e1c7551371329995ab178523701bb75bdf826ec /recipes
parent678601d2f5629950dae085e7ace11ae93ac38eb2 (diff)
openssl.recipe: Use debug/release CRT on MSVC
Otherwise openssl always links to the release CRT. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/542>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/openssl.recipe9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/openssl.recipe b/recipes/openssl.recipe
index e7df103a..f1ef78b5 100644
--- a/recipes/openssl.recipe
+++ b/recipes/openssl.recipe
@@ -190,6 +190,15 @@ class Recipe(recipe.Recipe):
# librpmio.so.8, which is used during package generation on Fedora.
if self.config.target_platform == Platform.LINUX:
config_sh += ' enable-ssl3 enable-ssl3-method enable-md2 '
+
+ if self.using_msvc():
+ if self.config.variants.vscrt == 'md':
+ config_sh += ' --release '
+ elif self.config.variants.vscrt == 'mdd':
+ config_sh += ' --debug '
+ else:
+ raise AssertionError
+
await shell.async_call(config_sh + self.openssl_platform, self.build_dir,
logfile=self.logfile, env=self.env)