Merge pull request #207805 from markpash/mbedtls/fix-static

mbedtls: fix static builds
This commit is contained in:
Ryan Lahfa 2022-12-26 22:39:30 +01:00 committed by GitHub
commit 70c476bbf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
'';
cmakeFlags = [
"-DUSE_SHARED_MBEDTLS_LIBRARY=on"
"-DUSE_SHARED_MBEDTLS_LIBRARY=${if stdenv.hostPlatform.isStatic then "off" else "on"}"
# Avoid a dependency on jsonschema and jinja2 by not generating source code
# using python. In releases, these generated files are already present in