thanks for link
rvk said
Also.... why did you want to do a static link to libc?
just a test program and poc - posters in the following topics said it couldn't be done so i did them in one program
https://forum.lazarus.freepascal.org/index.php/topic,64570.0.html"
https://forum.lazarus.freepascal.org/index.php/topic,63680.0.htmlrvk said
If you have static, what would be the use of dynamic in the same program?
(or did you mean that you can switch this with a DEFINE ?)
nope no switching
i just got the code i posted in my reply 3 in (originally from Bogen85 in his topic starting post) both in
https://forum.lazarus.freepascal.org/index.php/topic,64570.0.htmlworking using different fpc function/procedure names and /etc/ld.so.conf entry
turned out to be no big deal looking back but a struggle getting there
point ended up being learned about
{$librarypath vs -Fu on compile line
{$linklib vs external
/etc/ld.so.conf and ldconfig -v
i have no intention of linking to glibc ever again or musl for that matter !!!
i once had to use eglibc to compile a problematic qemu a while back though
btw have you ever replaced a glibc rpm or glibc deb with glibc source ... it is a fun project - just have a boot disk handy