diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
index 632872a2a901d56f36872dc840bef4204c452c37..cb62c645cd5216e2143c26323fc57e14f50ddb8c 100644 (file)
--- a/src/daemon/Makefile.am
+++ b/src/daemon/Makefile.am
# Link to these libraries..
COMMON_LIBS = $(PTHREAD_LIBS)
+if BUILD_WITH_CAPABILITY
+COMMON_LIBS += -lcap
+endif
if BUILD_WITH_LIBRT
COMMON_LIBS += -lrt
endif