--- libcap-2.22.orig/libcap/Makefile	2010-08-09 00:26:04.000000000 +0200
+++ libcap-2.22/libcap/Makefile	2013-10-28 10:46:10.000000000 +0100
@@ -33,7 +33,7 @@ INCLUDE_GPERF_OUTPUT = -include $(GPERF_
 endif
 
 _makenames: _makenames.c cap_names.list.h
-	$(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
+	$(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
 
 cap_names.h: _makenames
 	./_makenames > cap_names.h
