Skip to content

Commit 6859d47

Browse files
committed
Remove link directives for libutil on linux-gnu targets
These are all handled in src/unix/mod.rs now, which also addresses the crt-static case; no linux-gnu target should have any link directives in any other module. This fixes static linking with glibc for various architectures.
1 parent 3890269 commit 6859d47

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

src/unix/linux_like/linux/gnu/b32/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ pub const PTRACE_SETREGS: ::c_uint = 13;
321321
pub const TIOCSBRK: ::c_int = 0x5427;
322322
pub const TIOCCBRK: ::c_int = 0x5428;
323323

324-
#[link(name = "util")]
325324
extern "C" {
326325
pub fn sysctl(
327326
name: *mut ::c_int,

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ pub const SYS_statx: ::c_long = 291;
979979
pub const SYS_pidfd_open: ::c_long = 434;
980980
pub const SYS_clone3: ::c_long = 435;
981981

982-
#[link(name = "util")]
983982
extern "C" {
984983
pub fn sysctl(
985984
name: *mut ::c_int,

src/unix/linux_like/linux/gnu/b64/mips64/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,6 @@ pub const TIOCM_DSR: ::c_int = 0x400;
10041004

10051005
pub const EHWPOISON: ::c_int = 168;
10061006

1007-
#[link(name = "util")]
10081007
extern "C" {
10091008
pub fn sysctl(
10101009
name: *mut ::c_int,

src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,6 @@ pub const SYS_statx: ::c_long = 383;
10461046
pub const SYS_pidfd_open: ::c_long = 434;
10471047
pub const SYS_clone3: ::c_long = 435;
10481048

1049-
#[link(name = "util")]
10501049
extern "C" {
10511050
pub fn sysctl(
10521051
name: *mut ::c_int,

src/unix/linux_like/linux/gnu/b64/s390x.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,6 @@ pub const SYS_statx: ::c_long = 379;
10101010
pub const SYS_pidfd_open: ::c_long = 434;
10111011
pub const SYS_clone3: ::c_long = 435;
10121012

1013-
#[link(name = "util")]
10141013
extern "C" {
10151014

10161015
pub fn sysctl(

src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@ pub const SYS_pidfd_open: ::c_long = 434;
977977
// Reserved in the kernel, but not actually implemented yet
978978
pub const SYS_clone3: ::c_long = 435;
979979

980-
#[link(name = "util")]
981980
extern "C" {
982981
pub fn sysctl(
983982
name: *mut ::c_int,

0 commit comments

Comments
 (0)