Open eliasp opened 10 years ago
I have an idea of the root cause: systemd stopped packaging libsystemd-login as a separate library at version 209. See https://github.com/systemd/systemd/blob/master/NEWS#L2460
A workaround is to configure systemd with --enable-compat-libs
.
A solution in user-session-units would be to either:
s/libsystemd-login/libsystemd/
in Makefile.am. It breaks support for systemd versions older than 209.Considering 209 being somewhat old already, I'm more than willing to take a patch for the s/libsystemd-login/libsystemd/ change. Of course a version detection patch would be more complete, but it'll likely be a bit more complex.
Care to write a patch, @fredcadete ?
There it is. Used pkgconfig's ldflags in the end.
My build against systemd 211 now passes. I did not test it on runtime though. Good luck!