Skip to content

Commit 625ea69

Browse files
committed
fix(build): Set module build flags needed for darwin shared libraries
1 parent 851978d commit 625ea69

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif
5656
$(MANUAL): $(FIGURES)
5757

5858
BUILT_SOURCES_LUA = core/features.lua core/pathsetup.lua core/version.lua
59-
RUSILE_SOURCES = rusile/Cargo.toml rusile/src/lib.rs
59+
RUSILE_SOURCES = rusile/Cargo.toml rusile/src/lib.rs build-aux/module.rs
6060

6161
bin_PROGRAMS = sile
6262
bin_SCRIPTS = sile-lua

build-aux/module.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("cargo:rustc-link-arg=-Wl,-undefined,dynamic_lookup");
3+
}

rusile/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ authors.workspace = true
99
homepage.workspace = true
1010
repository.workspace = true
1111
license.workspace = true
12+
build = "../build-aux/module.rs"
1213

1314
[lib]
1415
crate-type = ["rlib", "cdylib", "staticlib"]

0 commit comments

Comments
 (0)