mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-18 18:31:15 +00:00
miniupnpd: add secure compilation flags for Linux
This commit is contained in:
parent
8d39d71e36
commit
51b5e09e04
@ -25,11 +25,14 @@
|
||||
CFLAGS ?= -Os
|
||||
CFLAGS += -fno-strict-aliasing
|
||||
CFLAGS += -fno-common
|
||||
CFLAGS += -fstack-protector -fPIE
|
||||
CFLAGS += -D_FORTIFY_SOURCE=2
|
||||
CPPFLAGS += -D_GNU_SOURCE
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wextra -Wstrict-prototypes -Wdeclaration-after-statement
|
||||
#CFLAGS += -Wno-missing-field-initializers
|
||||
#CFLAGS += -ansi # iptables headers does use typeof which is a gcc extension
|
||||
LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
|
||||
CC ?= gcc
|
||||
RM = rm -f
|
||||
INSTALL = install
|
||||
|
Loading…
x
Reference in New Issue
Block a user