Skip to content

glibc: Avoid building and linking stub libraries that were emptied in 2.34#21268

Merged
andrewrk merged 1 commit intoziglang:masterfrom
alexrp:glibc-consolidation
Sep 4, 2024
Merged

glibc: Avoid building and linking stub libraries that were emptied in 2.34#21268
andrewrk merged 1 commit intoziglang:masterfrom
alexrp:glibc-consolidation

Conversation

@alexrp
Copy link
Member

@alexrp alexrp commented Aug 31, 2024

Closes #20919.

zig4 cc system.c -target x86_64-linux-gnu.2.33ldd a.out
        linux-vdso.so.1 (0x00007ffc0ba83000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x0000795644147000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000795643e00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000795644181000)zig4 cc system.c -target x86_64-linux-gnu.2.34ldd a.out
        linux-vdso.so.1 (0x00007ffd4eb0f000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000075bec1200000)
        /lib64/ld-linux-x86-64.so.2 (0x000075bec14ba000)

See: https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html (note: this includes librt too, despite it not being mentioned)

@andrewrk
Copy link
Member

andrewrk commented Sep 4, 2024

Thanks, that's a nice change.

@andrewrk andrewrk merged commit 290ccb1 into ziglang:master Sep 4, 2024
@alexrp alexrp deleted the glibc-consolidation branch September 4, 2024 01:26
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

Successfully merging this pull request may close these issues.

pthread is always linked to the binary with zig cc

2 participants