Reduce visibility on secp-sys symbols
cc-rs builds C dependencies with reduced visibility to avoid exporting the C symbols all the way out to any rust-built shared libraries however we override it with SECP256K1_API. We should avoid doing this, allowing LTO/DCE to do its work.
This commit is contained in:
parent
63f4de78ce
commit
ee1103a1f3
|
@ -33,6 +33,7 @@ fn main() {
|
||||||
.include("depend/secp256k1/src")
|
.include("depend/secp256k1/src")
|
||||||
.flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
|
.flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
|
||||||
.define("SECP256K1_BUILD", Some("1"))
|
.define("SECP256K1_BUILD", Some("1"))
|
||||||
|
.define("SECP256K1_API", Some(""))
|
||||||
.define("ENABLE_MODULE_ECDH", Some("1"))
|
.define("ENABLE_MODULE_ECDH", Some("1"))
|
||||||
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
|
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
|
||||||
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"))
|
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"))
|
||||||
|
|
Loading…
Reference in New Issue