Skip to content

Commit

Permalink
fix(build): Set module build flags needed for darwin shared libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 7, 2024
1 parent 851978d commit 625ea69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ endif
$(MANUAL): $(FIGURES)

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

bin_PROGRAMS = sile
bin_SCRIPTS = sile-lua
Expand Down
3 changes: 3 additions & 0 deletions build-aux/module.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("cargo:rustc-link-arg=-Wl,-undefined,dynamic_lookup");
}
1 change: 1 addition & 0 deletions rusile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ authors.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
build = "../build-aux/module.rs"

[lib]
crate-type = ["rlib", "cdylib", "staticlib"]
Expand Down

0 comments on commit 625ea69

Please sign in to comment.