Selaa lähdekoodia

openssl: add --gc-sections

Signed-off-by: Dirk Feytons <[email protected]>
Dirk Feytons 9 vuotta sitten
vanhempi
sitoutus
057b116e09
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      package/libs/openssl/Makefile

+ 2 - 1
package/libs/openssl/Makefile

@@ -184,7 +184,8 @@ define Build/Configure
 		depend
 endef
 
-TARGET_CFLAGS += $(FPIC) -I$(CURDIR)/include
+TARGET_CFLAGS += $(FPIC) -I$(CURDIR)/include -ffunction-sections -fdata-sections
+TARGET_LDFLAGS += -Wl,--gc-sections
 
 define Build/Compile
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \