[m-users.] Completely statical linking
Julien Fischer
jfischer at opturion.com
Sun Feb 5 13:17:24 AEDT 2023
Hi Volker,
On Sat, 4 Feb 2023, Volker Wysk wrote:
> I'm trying to link a program completely statically, by using "--mercury-
> linkage static" and "--linkage static". I get warning messages like this:
>
> /usr/bin/ld: (.text+0x11e): Warnung: Using 'getpwuid_r' in statically linked
> applications requires at runtime the shared libraries from the glibc version
> used for linking
>
> Why does it require shared libraries at runtime? That's what I want to
> circumvent by linking statically!
That's an issue with glibc, not Mercury.
More genererally: using --linkage static is difficult on many modern
Linux systems and (practically) impossible on others (e.g macOS) due to
limitations imposed by the OS / system designers.
Julien.
More information about the users
mailing list