]> git.proxmox.com Git - pve-manager.git/blobdiff - bin/Makefile
buildsys: use CC, CPPFLAGS and CFLAGS
[pve-manager.git] / bin / Makefile
index c7fca9f8478a70ece15a31b0196be5f856d59cd9..f239a0e5c68a283272b7da0213428d5a7ab6d416 100644 (file)
@@ -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})