Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c-api builds the shared library w/out SONAME #623

Closed
yurivict opened this issue May 19, 2023 · 4 comments
Closed

c-api builds the shared library w/out SONAME #623

yurivict opened this issue May 19, 2023 · 4 comments

Comments

@yurivict
Copy link

This patch used to solve this problem:

--- build.rs.orig       1970-01-01 00:00:00 UTC
+++ build.rs
@@ -0,0 +1,3 @@
+fn main() {
+       println!("cargo:rustc-cdylib-link-arg=-Wl,-soname,libresvg.so");
+}

but now build.rs isn't in the root of the project any more.

@RazrFalcon
Copy link
Owner

resvg never had build.rs. I'm not sure what are you doing and why.

@yurivict
Copy link
Author

The FreeBSD port graphics/resvg-capi builds the shared library.
Sorry, this patch applied to c-api/build.rs

@RazrFalcon
Copy link
Owner

I assume you talk about rust-lang/cargo#5045, if so, there is nothing I can do from my side.
Just put your build.rs to crates/c-api and you should be fine.

@yurivict
Copy link
Author

Ok.

@yurivict yurivict closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants