Changeset 25829


Ignore:
Timestamp:
2011-03-02T13:48:04+01:00 (7 years ago)
Author:
nbd
Message:

opkg: use -ffunction-sections, -fdata-sections and --gc-sections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/opkg/Makefile

    r24679 r25829  
    4747 
    4848TARGET_CFLAGS += $(if $(CONFIG_GCC_VERSION_4_3)$(CONFIG_GCC_VERSION_4_4),-Wno-array-bounds) 
     49TARGET_CFLAGS += -ffunction-sections -fdata-sections 
    4950EXTRA_CFLAGS += $(TARGET_CPPFLAGS) 
    5051 
     
    6061                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    6162                HOST_CPU="$(PKGARCH)" \ 
     63                LDFLAGS="-Wl,--gc-sections" \ 
    6264                all install 
    6365endef 
Note: See TracChangeset for help on using the changeset viewer.