[systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

Peter Wu peter at lekensteyn.nl
Wed Nov 26 15:14:13 PST 2014


On Wednesday 26 November 2014 23:55:52 Michael Biebl wrote:
> 2014-11-26 23:40 GMT+01:00 Peter Wu <peter at lekensteyn.nl>:
> > https://bugs.freedesktop.org/show_bug.cgi?id=86666. Hmm, strange folks,
> > they use --enable-compat-libs but then remove[2] the libraries...?
> 
> We don't remove the libraries, we remove .so symlinks, since they are useless.

Ah, to prevent building with -lsystemd-X while allowing existing
programs to run I guess.

On topic, I think that --gc-section hides those errors as the code do
not reference directly and --gc-sections strip them before it get to
linking. This is the case for python-systemd. No other part of the code
uses id128.so, _daemon.so, _journal.so, login.so or _reader.so.

With --without-python --disable-compat-libs, everything still compiles.
It could likely be fixed for --with-python by adding systemd-shared to
id128_la_LIBADD (etc.)?
-- 
Kind regards,
Peter
https://lekensteyn.nl



More information about the systemd-devel mailing list