openvpn: reduce binary size using --gc-sections on linking
Saves around 9kb gzipped on MIPS Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
e6871ab925
commit
2bc747aaea
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ CONFIGURE_VARS += \
|
|||
IPROUTE=/sbin/ip \
|
||||
NETSTAT=/sbin/netstat
|
||||
|
||||
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
$(if $(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_SMALL),--enable-small) \
|
||||
|
|
Loading…
Reference in a new issue