[systemd-devel] [PATCH] Makefile.am: reduce linked libraries
lennart at poettering.net
Tue Nov 1 15:39:04 PDT 2011
On Tue, 18.10.11 12:51, harald at redhat.com (harald at redhat.com) wrote:
> From: Harald Hoyer <harald at redhat.com>
> For libselinux and libcap the --as-needed linker flag does not seem to
> work. In fact, it seems to be turned off completly, if one of these
> libraries is used after --as-needed.
> This patch reduces the amount of linked libraries.
Hmm, let me see if I get this right: with this patch applied we'd build
cap and selinux support into libsystemd-basic.la, but we wouldn't link
against the respective libraries but instead do that in the binaries
which pull in the .la?
I am not sure I like this. I mean, I understand the goal, and it's a
good one, but I think if we do this we should do this properly, and
split up util.c so that the stuff that uses caps and selinux is
independent of the rest and can be pulled in individually as needed.
I'd be happy to take a patch for that!
Or did I misunderstand the patch?
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel