From 74c47a46f2ee5dfed1b39aa53fb0b0cda22b01fa Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 28 Nov 2024 10:07:00 -0800 Subject: [PATCH] wip: remove static to see what breaks Signed-off-by: William Casarin --- build.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 88d9e55..1787aaa 100644 --- a/build.rs +++ b/build.rs @@ -12,9 +12,9 @@ fn secp256k1_build() { .include("nostrdb/deps/secp256k1/src") .flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream .flag_if_supported("-Wno-unused-parameter") // patching out printf causes this warning - //.define("SECP256K1_API", Some("")) + .define("SECP256K1_API", Some("extern")) + .define("SECP256K1_STATIC", "1") .define("ENABLE_MODULE_ECDH", Some("1")) - .define("SECP256K1_STATIC", Some("1")) .define("ENABLE_MODULE_SCHNORRSIG", Some("1")) .define("ENABLE_MODULE_EXTRAKEYS", Some("1")); //.define("ENABLE_MODULE_ELLSWIFT", Some("1")) @@ -79,7 +79,8 @@ fn main() { "nostrdb/deps/lmdb/mdb.c", "nostrdb/deps/lmdb/midl.c", ]) - .define("SECP256K1_STATIC", Some("1")) + .define("SECP256K1_API", Some("extern")) + .define("SECP256K1_STATIC", "1") .include("nostrdb/deps/lmdb") .include("nostrdb/deps/flatcc/include") .include("nostrdb/deps/secp256k1/include")