--- lib/libcap/Makefile	2017-04-10 04:31:02.000000000 +0200
+++ -	2018-08-28 19:50:14.092251299 +0200
@@ -26,7 +26,7 @@
 all: $(LIBNAME)
 
 _makenames: _makenames.c cap_names.sed
-	$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
+	$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $< -o $@
 
 cap_names.h: _makenames
 	./_makenames > cap_names.h
