[packages] binutils: build shared libraries, package missing libopcode, libbfd

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25931 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-03-07 15:56:01 +00:00
parent 277a112107
commit b53458402f

View File

@ -1,9 +1,10 @@
# #
# Copyright (C) 2006-2010 OpenWrt.org # Copyright (C) 2006-2011 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
# #
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=binutils PKG_NAME:=binutils
@ -17,7 +18,7 @@ PKG_MD5SUM:=
PATCH_DIR:=$(TOPDIR)/toolchain/binutils/patches/$(PKG_VERSION) PATCH_DIR:=$(TOPDIR)/toolchain/binutils/patches/$(PKG_VERSION)
PKG_FIXUP:=libtool PKG_FIXUP:=autoreconf
PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof binutils ld libiberty gold intl PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof binutils ld libiberty gold intl
PKG_REMOVE_FILES:=libtool.m4 PKG_REMOVE_FILES:=libtool.m4
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -51,6 +52,7 @@ CONFIGURE_ARGS = \
--disable-multilib \ --disable-multilib \
--disable-werror \ --disable-werror \
--disable-nls \ --disable-nls \
--enable-shared \
$(SOFT_FLOAT_CONFIG_OPTION) \ $(SOFT_FLOAT_CONFIG_OPTION) \
$(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS))
@ -92,14 +94,15 @@ define Build/Compile
endef endef
define Package/objdump/install define Package/objdump/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin/objdump $(1)/usr/bin/ $(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 endef
define Package/binutils/install define Package/binutils/install
$(INSTALL_DIR) $(1)/usr $(INSTALL_DIR) $(1)/usr
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/$(REAL_GNU_TARGET_NAME) $(1)/usr
rm -f $(1)/usr/bin/objdump rm -f $(1)/usr/bin/objdump
endef endef