Re: [PATCH] readutmp: load libsystemd with dlopen instead of linking
Bruno Haible via Gnulib discussion list <[email protected]> Wed, 15 Jul 2026 19:38:21 +0200
| Newsgroups | gmane.comp.lib.gnulib.bugs |
|---|---|
| Message-ID | <24696071.hxa6pUQ8Du@cagnes> |
> > Also, what about static linking (CC="gcc -static")? > > Pàdraig, does coreutils support building statically? Yes, I can build coreutils with CC="gcc -static" ./configure --enable-systemd --without-selinux > > Does glibc support dlopen from statically linked binaries meanwhile? > As far as I can tell with a quick POC it works with glibc, yes Indeed, yes: With your patch applied, I can still build coreutils with CC="gcc -static" ./configure --enable-systemd --without-selinux and the src/who program works fine. Bruno