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:
		@@ -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) \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user