chiark / gitweb /
Classify processes from sessions into cgroups
[elogind.git] / Makefile.am
index 9800c47f15bf7b412afb180c16c01e25b02028f3..fe421287a2c4163bf90f1115cfb5ac6fbe298efd 100644 (file)
@@ -55,6 +55,8 @@ zshcompletiondir=@zshcompletiondir@
 systemsleepdir=$(pkglibexecdir)/sleep.d
 systemshutdowndir=$(pkglibexecdir)/shutdown.d
 
+PKTTYAGENT=$(bindir)/pkttyagent
+
 # Our own, non-special dirs
 pkgsysconfdir=$(sysconfdir)/elogind
 pkgincludedir=$(includedir)/elogind
@@ -120,7 +122,7 @@ AM_CPPFLAGS = \
        -DELOGIND_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/elogind-cgroups-agent\" \
        -DROOTPREFIX=\"$(rootprefix)\" \
        -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
-       -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
+       -DPOLKIT_AGENT_BINARY_PATH=\"$(PKTTYAGENT)\" \
        -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
        -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
        -DHALT=\"$(HALT)\" \
@@ -375,6 +377,9 @@ libbasic_la_CFLAGS = \
        $(CAP_CFLAGS) \
        -pthread
 
+libbasic_la_LDFLAGS = \
+       $(CAP_LDFLAGS)
+
 libbasic_la_LIBADD = \
        $(SELINUX_LIBS) \
        $(CAP_LIBS) \