|
|
|
|
|
by mhitza
1873 days ago
|
|
> I don't write code that requires Glib, but last I remember, there are explicit (lesser-known) flags that give complete static independence :P I wouldn't mind if there was some quick way of doing this. I would like to statically link a bunch of commandline utilies that I'd like to just copy in my home folder on various servers without installing them globally. Granted, I'm not a C developer so I just searched for answers on statically linking, but I never was able to easily create these binaries (with a few exceptions). If I recall correctly I had to individually compile dependencies to be able to statically link to those as well (and a bunch of C_FLAGS/LD_LIBRARY_PATH/INCLUDE_PATH env vars sprinkled everywhere to wire all those up). If someone has a bash script gcc-static-link that I can use as a wrapper around gcc I'd be more than happy to hear about it :) |
|