Author: jogo
Date: 2014-08-30 13:02:22 +0200 (Sat, 30 Aug 2014)
New Revision: 42337

Modified:
   trunk/package/devel/binutils/Makefile
Log:
binutils: link libbfd and libopcodes dynamically again

Build libbfd and libopcodes as shared libraries, else they get linked
statically into every binary, increasing each binary size by ~650kB.

Reduces binutils package size to old expected values.

Fixes #17060.

Signed-off-by: Jonas Gorski <[email protected]>

Modified: trunk/package/devel/binutils/Makefile
===================================================================
--- trunk/package/devel/binutils/Makefile       2014-08-30 09:59:30 UTC (rev 
42336)
+++ trunk/package/devel/binutils/Makefile       2014-08-30 11:02:22 UTC (rev 
42337)
@@ -9,7 +9,7 @@
 
 PKG_NAME:=binutils
 PKG_VERSION:=2.24
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=@GNU/binutils
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@@ -48,6 +48,7 @@
 TARGET_CFLAGS += $(FPIC)
 
 CONFIGURE_ARGS += \
+       --enable-shared \
        --enable-install-libiberty \
        --enable-install-libbfd
 
@@ -67,6 +68,8 @@
 define Package/objdump/install
        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/objdump $(1)/usr/bin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopcodes*.so $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd*.so $(1)/usr/lib/
 endef
 
 define Package/binutils/install
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to