[m-users.] Completely statical linking

Volker Wysk post at volker-wysk.de
Sun Feb 5 16:59:00 AEDT 2023


Am Sonntag, dem 05.02.2023 um 13:17 +1100 schrieb Julien Fischer:
> 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.

Seems like I need to make an AppImage...

Bye, 
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20230205/6ffc00af/attachment.sig>


More information about the users mailing list