ppp
ppp copied to clipboard
Fix libsystemd detection
-
Use uppercase for
prefix
parameterSYSTEMD_CFLAGS
is used elsewhere soprefix
cannot be lowercase. https://autotools.info/pkgconfig/pkg_check_modules.html -
The module name should be
libsystemd
Previously it will result in the following compile error when building pppd/auth.c:/usr/bin/ld: pppd-auth.o: undefined reference to symbol 'sd_notify@@LIBSYSTEMD_209' /usr/bin/ld: /usr/lib/libsystemd.so.0: error adding symbols: DSO missing from command line
This is due to missing
-lsystemd-daemon
flag which is provided bylibsystemd-daemon-devel
package on Debian orsystemd-libs
on ArchLinux. And the proper .pc file in the package islibsystemd
notsystemd
. https://stackoverflow.com/a/38303241