We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d37c75a + d52e4a3 commit 7a001afCopy full SHA for 7a001af
unwind/src/lib.rs
@@ -121,10 +121,16 @@ extern "C" {}
121
#[link(name = "unwind", kind = "static", modifiers = "-bundle")]
122
extern "C" {}
123
124
-#[cfg(any(target_os = "freebsd", target_os = "netbsd"))]
+#[cfg(target_os = "netbsd")]
125
#[link(name = "gcc_s")]
126
127
128
+#[cfg(target_os = "freebsd")]
129
+#[link(name = "gcc", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]
130
+#[link(name = "gcc_eh", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]
131
+#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
132
+extern "C" {}
133
+
134
#[cfg(all(target_os = "openbsd", target_arch = "sparc64"))]
135
#[link(name = "gcc")]
136
0 commit comments