--- libcap-2.22.orig/libcap/Makefile
+++ libcap-2.22/libcap/Makefile
@@ -16,7 +16,7 @@
# no support).
ifeq ($(LIBATTR),yes)
FILES += cap_file
-LDFLAGS += -lattr
+LDFLAGS +=
DEPS = -lattr
endif