Skip to content

Commit 85f181c

Browse files
committed
Do not link libraries on l4re by default
L4Re builds don't have default libraries. The L4Re build system controls compilation and passes linker flags using -Z itself.
1 parent e412497 commit 85f181c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ pub const INADDR_BROADCAST: in_addr_t = 4294967295;
230230
pub const INADDR_NONE: in_addr_t = 4294967295;
231231

232232
cfg_if! {
233-
if #[cfg(dox)] {
233+
if #[cfg(any(dox, target_os = "l4re"))] {
234234
// on dox builds don't pull in anything
235+
// L4Re builds pass the required libs using -Z to the compiler.
235236
} else if #[cfg(all(not(stdbuild), feature = "use_std"))] {
236237
// cargo build, don't pull in anything extra as the libstd dep
237238
// already pulls in all libs.

0 commit comments

Comments
 (0)