Page 1 of 1

Porting Glibc

Posted: Mon Jan 21, 2019 11:07 pm
by Jush
How do I link glibc into my Operating system? I tried a couple of times but I keep getting errors from the actual source from headers and .c files.

And the glibc headers had missing header files that exist in the glibc-build folder containing everything, how do I contain every folder that has glibc *.o files, *.c and *.h properly without any issues?

Re: Porting Glibc

Posted: Mon Jan 21, 2019 11:45 pm
by Korona
glibc is known to be hard to port. It only runs on Linux (and maybe GNU Hurd). If you do not want to invest massive amounts of time into porting it, I'd suggest to look for other, more portable C libraries.

Re: Porting Glibc

Posted: Mon Jan 21, 2019 11:57 pm
by Jush
What good portable C libraries do you recommend? (And include how easy it is port them)

Re: Porting Glibc

Posted: Tue Jan 22, 2019 10:15 am
by mallard
Jush wrote:What good portable C libraries do you recommend? (And include how easy it is port them)
https://wiki.osdev.org/C_Library

(Although ignore the poetry under "MyOS libc"; what's "best" and "most in the osdev spirit" is entirely up to you.)

Re: Porting Glibc

Posted: Wed Jan 23, 2019 4:41 am
by Combuster
mallard wrote:Although ignore the poetry under "MyOS libc"; what's "best" and "most in the osdev spirit" is entirely up to you.
I've updated the wiki accordingly :wink: