albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.81k stars 411 forks source link

Compilation with `--enable-disable-systemd` fails with `/usr/bin/ld: cannot find -lsystemd: No such file or directory`: `src/shared/Makefile.am` unconditionally adds `-lsystemd`. #500

Closed dreirund closed 10 months ago

dreirund commented 11 months ago

When I build with ./configure --enable-disable-systemd, compilation fails with

/usr/bin/ld: cannot find -lsystemd: No such file or directory

It turns out that the file src/shared/Makefile.am has

libmiracle_shared_la_LIBADD = -lsystemd \
[...]

which unconditionally adds a -lsystemd.

Removing that -lsystemd makes build without systemd working for me, but I don't know enough about the configuration system to give a fix that works conditionally weather --enable-disable-systemd is specified or not.

Regards!

albfan commented 10 months ago

Fixed on af6ab25

systemd dependency or elogind should come in DEP_LIBS

good catch!