About cross-compilers and their use - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
I think musl is stronger than glibc because it tries to follow POSIX standards more quickly, and make standard function more secure.
By keeping everything simpler, they make the code easier to review/maintain, so the libc is much stronger overall. Now that's just my POV and some would probably disagree. I don't care much about them. So what have I done so far? I have a cross compiler installed in $HOME/cross/gcc-x86_64: Code: $ sponge < /home/egull/cross/gcc-x86_64/README It links everything statically, and use only what's in $HOME/cross/gcc-x86_64/bin/x86_64-linux-musl/{lib,include} So if I want to compile something against, let's say libressl, I first need to install libressl's headers and libs to my toolchain's root. I have written a dumb package manager which can install packages to whatever root the $PMROOT variable points to. It makes everything stupidly easy to work with Here is what happens when compiling curl alone, with --with-ssl flag: Code: $ (cd tree/curl; pmkit build) SSL is disabled as the configure script couldn't find the appropriate libs. Now if I build libressl, and install it to the cross-compiler directory: Code: # useless output is suppressed here SSL support is now compiled in, yay! I can then just remove the libressl package from the cross environment: Code: $ PMROOT=$HOME/cross/gcc-x86_64/x86_64-linux-musl; export PMROOT Next step is to figure out what are the base packages that are needed on a fresh install. If you have any suggestion, they're welcome! |
|||
Messages In This Thread |
About cross-compilers and their use - by z3bra - 10-08-2015, 03:12 PM
RE: About cross-compilers and their use - by Houseoftea - 10-08-2015, 03:32 PM
RE: About cross-compilers and their use - by z3bra - 10-08-2015, 06:58 PM
RE: About cross-compilers and their use - by xero - 13-08-2015, 11:27 AM
RE: About cross-compilers and their use - by cjm - 13-08-2015, 04:46 PM
RE: About cross-compilers and their use - by z3bra - 14-08-2015, 06:05 AM
RE: About cross-compilers and their use - by z3bra - 19-09-2015, 06:56 AM
RE: About cross-compilers and their use - by October - 19-09-2015, 11:33 PM
|