소스 검색

openssl: add --gc-sections

Signed-off-by: Dirk Feytons <[email protected]>
Dirk Feytons 9 년 전
부모
커밋
057b116e09
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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) \