ports/multimedia/ringrtc/files/patch-cargo-crates_neon-0.9.1_src_lib.rs
Mikael Urankar 9aad8301d5 multimedia/ringrtc: Add new port
RingRTC is a middleware library providing Signal Messenger applications
with video and voice calling services built on top of WebRTC.

WWW: https://github.com/signalapp/ringrtc
2022-06-23 13:38:16 +02:00

10 lines
585 B
Rust

--- cargo-crates/neon-0.9.1/src/lib.rs.orig 2021-03-15 17:51:55 UTC
+++ cargo-crates/neon-0.9.1/src/lib.rs
@@ -104,6 +104,7 @@ macro_rules! register_module {
($module:pat, $init:block) => {
// Mark this function as a global constructor (like C++).
#[allow(improper_ctypes)]
+ #[cfg_attr(target_os = "freebsd", link_section = ".ctors")]
#[cfg_attr(target_os = "linux", link_section = ".ctors")]
#[cfg_attr(target_os = "android", link_section = ".ctors")]
#[cfg_attr(target_os = "macos", link_section = "__DATA,__mod_init_func")]