Question about integrating custom network functions into glibc

Florian Weimer fweimer@redhat.com
Mon Jan 13 13:25:07 GMT 2025


* Lynn Uni:

> Dear Florian,
> Thank you so much for your reply, but I still have a few questions.
>
> Let's say I create a mylib.a library (in a separate build
> process). How can I integrate mylib.a into glibc so that I can use
> mylib.a's functions from glibc?  Specifically, which Makefiles do I
> need to modify (there are quite a few of them)? I have read the Glibc
> manual but didn't find a clear guide.

I don't think we have hooks to link in third-party code.  We only do
this for libgcc.a.

It's rather likely that you to build your code in a special way (to meet
glibc's requirmeents) before you can link it into libc.so.

Thanks,
Florian



More information about the Libc-alpha mailing list