Re: Linking completely statically

2020-08-09 Thread Volker Wysk
Am Sonntag, den 09.08.2020, 09:53 -0400 schrieb Brandon Allbery: > If you are obeying all the necessary restrictions on glibc, or you > are > using a different libc such as musl which is designed for static > linking, then "-Wl,-static" should be sufficient. Doing this with > glibc will likely

Re: Linking completely statically

2020-08-09 Thread Volker Wysk
Am Sonntag, den 09.08.2020, 08:59 -0400 schrieb Brandon Allbery: > Linux is not friendly to static linking, and you would need to either > package or match exact versions of things like the nss and locale > libraries that are dynamically loaded at runtime and don't show up in > ldd. This

Re: Linking completely statically

2020-08-09 Thread Brandon Allbery
Linux is not friendly to static linking, and you would need to either package or match exact versions of things like the nss and locale libraries that are dynamically loaded at runtime and don't show up in ldd. This limitation comes from glibc and is documented in its manual. On Sun, Aug 9, 2020,

Linking completely statically

2020-08-09 Thread Volker Wysk
Hi! I know of the command line argument "-static". But this only affects the Haskell libraries. I want to link some programs completely statically, no external libraries needed. When just linking with "-static" I still have those dynamically linked things: desktop ~/bin $ ldd sicherung