mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 10:05:08 +00:00
osflags: use pkg-config for systemd support
Recent versions of systemd don't ship with libsystemd-daemon.so anymore, but instead use libsystemd.so for everything. This is obviously problematic for using the same LDFLAGS on old systemd and new systemd. So, they also ship compatability pkgconfig files, which use the old names but return the new library. So, the most portable way to support both old and new systemd is to use pkgconfig. It's not a problem either, since systems that use systemd are bound to also have pkgconfig installed.
This commit is contained in:
parent
b4c3656c3c
commit
cc4bc22447
@ -19,7 +19,7 @@ link)
|
|||||||
Linux)
|
Linux)
|
||||||
FLAGS="";
|
FLAGS="";
|
||||||
[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
|
[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
|
||||||
[ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon";
|
[ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS $(pkg-config --libs libsystemd-daemon)";
|
||||||
echo $FLAGS;
|
echo $FLAGS;
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user