diff --git a/BUILD.gn b/BUILD.gn index 94bb2ba2ea935bcb7c624c0a98f43a5ec8287d36..a3516531085738580507dbb2c838294a22b23b13 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -5,6 +5,10 @@ config("mbedtls_config") { include_dirs = [ "./include", ] + + cflags = [ + "-fPIC", + ] } source_set("mbedtls_source") { @@ -77,6 +81,10 @@ source_set("mbedtls_source") { configs += [ ":mbedtls_config", ] + + public_configs = [ + ":mbedtls_config", + ] } zlite_component("mbedtls_shared") {