OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 16... | Line 16... | |||
16 | TARGET_CFLAGS += -Wformat -Werror=format-security |
16 | TARGET_CFLAGS += -Wformat -Werror=format-security |
|
17 | endif |
17 | endif |
|
18 | endif |
18 | endif |
|
19 | ifdef CONFIG_PKG_ASLR_PIE |
19 | ifdef CONFIG_PKG_ASLR_PIE |
|
20 | ifeq ($(strip $(PKG_ASLR_PIE)),1) |
20 | ifeq ($(strip $(PKG_ASLR_PIE)),1) |
|
21 | TARGET_CFLAGS += $(FPIC) |
21 | TARGET_CFLAGS += -fPIC |
|
22 | TARGET_LDFLAGS += $(FPIC) -specs=$(INCLUDE_DIR)/hardened-ld-pie.specs |
22 | TARGET_LDFLAGS += -specs=$(INCLUDE_DIR)/hardened-ld-pie.specs |
|
23 | endif |
23 | endif |
|
24 | endif |
24 | endif |
|
25 | ifdef CONFIG_PKG_CC_STACKPROTECTOR_REGULAR |
25 | ifdef CONFIG_PKG_CC_STACKPROTECTOR_REGULAR |
|
26 | ifeq ($(strip $(PKG_SSP)),1) |
26 | ifeq ($(strip $(PKG_SSP)),1) |
|
27 | TARGET_CFLAGS += -fstack-protector |
27 | TARGET_CFLAGS += -fstack-protector |