Re: [m-users.] Completely statical linking
Julien Fischer <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
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. _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users