Skip to content

Commit

Permalink
wip: remove static to see what breaks
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Nov 28, 2024
1 parent 3edec24 commit 74c47a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 74c47a4

Please sign in to comment.