summaryrefslogtreecommitdiff
path: root/progs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'progs/Makefile')
-rw-r--r--progs/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/Makefile b/progs/Makefile
index 3f66a38..ef8f056 100644
--- a/progs/Makefile
+++ b/progs/Makefile
@@ -7,7 +7,9 @@ include $(topdir)/Make.Rules
PROGS=getpcaps getcap setcap capsh
BUILD=$(PROGS) verify-caps
+ifneq ($(DYNAMIC),yes)
LDFLAGS += --static
+endif
LDLIBS += -lcap
all: $(BUILD)