diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-12-10 12:39:54 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-22 16:42:19 +0100 |
commit | 2bc747aaead96d3eebc97a9d6c638b8eb44de180 (patch) | |
tree | 930e45f2a475a74ee3fe03d0eb0d8acd6b12d434 /package/network | |
parent | e6871ab9254fc463e8dcbdc72e2fe87a1fec5c44 (diff) | |
download | upstream-2bc747aaead96d3eebc97a9d6c638b8eb44de180.tar.gz upstream-2bc747aaead96d3eebc97a9d6c638b8eb44de180.tar.bz2 upstream-2bc747aaead96d3eebc97a9d6c638b8eb44de180.zip |
openvpn: reduce binary size using --gc-sections on linking
Saves around 9kb gzipped on MIPS
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/openvpn/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile index 11b6aabe25..24fb897a01 100644 --- a/package/network/services/openvpn/Makefile +++ b/package/network/services/openvpn/Makefile @@ -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) \ |