Closed fredcadete closed 9 years ago
On Arch Linux, systemd.pc defines variables for various paths, but does not include a Libs entry to substitute the proper linker flag(s), so the build fails.
The correct Libs entry can be found in libsystemd.pc though, so one solution would be adding a new PKG_CHECK_MODULES() macro to configure.ac specifically for libsystemd, producing a new variable with _LIBS suffix, and substitute that in the makefile.
Thanks. My bad, I did have it as you said in the Yocto environment I was using. I tested the build on Debian-testing this time.
Looks good to me, thanks!
Removing the hardcoded -lsystemd-login also fixes builds against systemd >= 209 (issue #18)