From 103ddb8868085eb9569b9de70b58c85d9f0f89a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 19 Jul 2017 08:49:58 +0200 Subject: [PATCH] buildsys: use CC, CPPFLAGS and CFLAGS pvemailforward is a tiny oneliner, but for the sake of best practices, let's use the build tools from the environment. For example, with dpkg-buildpackage this will make us use -D_FORTIFY_SOURCE=2 etc. --- bin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/Makefile b/bin/Makefile index c7fca9f8..f239a0e5 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -66,7 +66,7 @@ pvereport.1.pod: pvereport mv $@.tmp $@ pvemailforward: pvemailforward.c - gcc $< -o $@ -g -O2 -Wall -ldl -lc + $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -g -O2 $< -o $@ .PHONY: install install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS}) -- 2.39.2