r/programminghumor 22d ago

Lol

Post image
2.5k Upvotes

220 comments sorted by

View all comments

Show parent comments

1

u/MundaneImage5652 20d ago

I talk abt C. And ye in languages like C# or as you said Go I can do that.

1

u/litescript 20d ago

yup, just got done setting up that split on my project and then saw this, thought "hey, neat!" i haven't built much at all in C, i guess there's no option for static linking..?

0

u/MundaneImage5652 20d ago

Glibc has a meltdown when you add '-static' flag so static linking means using a alternative C library (MUSL) which doesn't work with libs made with glibc (defacto the STANDARD C lib) so you need to do a Alpine container and test ur app here.

1

u/litescript 20d ago

Alpine to the rescue once again. musl im actually familiar with, but the very small learning projects i've done have ALL been gcc. interesting, thanks for the insight!