mirror of https://github.com/hak5/openwrt.git
openvpn: reduce binary size using --gc-sections on linking
Saves around 9kb gzipped on MIPS Signed-off-by: Felix Fietkau <nbd@nbd.name>lede-17.01
parent
e6871ab925
commit
2bc747aaea
|
@ -65,6 +65,9 @@ CONFIGURE_VARS += \
|
||||||
IPROUTE=/sbin/ip \
|
IPROUTE=/sbin/ip \
|
||||||
NETSTAT=/sbin/netstat
|
NETSTAT=/sbin/netstat
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(call Build/Configure/Default, \
|
$(call Build/Configure/Default, \
|
||||||
$(if $(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_SMALL),--enable-small) \
|
$(if $(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_SMALL),--enable-small) \
|
||||||
|
|
Loading…
Reference in New Issue