mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 03:55:33 +00:00
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.
This commit is contained in:
parent
db3395bb83
commit
103ddb8868
@ -66,7 +66,7 @@ pvereport.1.pod: pvereport
|
|||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
pvemailforward: pvemailforward.c
|
pvemailforward: pvemailforward.c
|
||||||
gcc $< -o $@ -g -O2 -Wall -ldl -lc
|
$(CC) $(CPPFLAGS) $(CFLAGS) -Wall -g -O2 $< -o $@
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS})
|
install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS})
|
||||||
|
Loading…
Reference in New Issue
Block a user