Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some unnecessary link annotations #11563

Merged

Conversation

straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Dec 9, 2021

On musl, librt, libm, and libpthread are integrated directly into libc. It's unnecessary to link them separately. https://wiki.musl-libc.org/faq.html#Q:-lib(m|pthread|crypt).a/so-are-empty?

Also, we don't need to link libpthread in GC none. That's only necessary in the Boehm GC bindings because we need to make sure pthreads is passed to the linker before gc. GC none doesn't need libgc nor pthreads.

src/math/libm.cr Show resolved Hide resolved
src/gc/boehm.cr Outdated Show resolved Hide resolved
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
src/crystal/system/unix/lib_event2.cr Outdated Show resolved Hide resolved
Co-authored-by: Oleh Prypin <oleh@pryp.in>
@straight-shoota straight-shoota added this to the 1.4.0 milestone Jan 28, 2022
@straight-shoota straight-shoota merged commit 2d4c35f into crystal-lang:master Jan 29, 2022
@straight-shoota straight-shoota deleted the refactor/musl-link branch January 29, 2022 16:00
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants