1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# libiberty 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLIBIBERTY_VERSION = 2.32 8*4882a593SmuzhiyunLIBIBERTY_SOURCE = binutils-$(LIBIBERTY_VERSION).tar.xz 9*4882a593SmuzhiyunLIBIBERTY_SITE = $(BR2_GNU_MIRROR)/binutils 10*4882a593SmuzhiyunHOST_LIBIBERTY_DL_SUBDIR = binutils 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun# We're only building libiberty here, not the full binutils suite 13*4882a593SmuzhiyunLIBIBERTY_LICENSE = LGPL-2.1+ 14*4882a593SmuzhiyunLIBIBERTY_LICENSE_FILES = COPYING.LIB 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunLIBIBERTY_SUBDIR = libiberty 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# We explicitly disable multilib, as we do in binutils. 19*4882a593Smuzhiyun# By default, libiberty installs nothing, so we must force it. 20*4882a593SmuzhiyunHOST_LIBIBERTY_CONF_OPTS = \ 21*4882a593Smuzhiyun --disable-multilib \ 22*4882a593Smuzhiyun --enable-install-libiberty 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# Some packages (e.g. host-gdb) will pick this library and build shared 25*4882a593Smuzhiyun# objects with it. But libiberty does not honour the --enable-shared and 26*4882a593Smuzhiyun# --disable-static flags; it only ever builds a static library no matter 27*4882a593Smuzhiyun# what. So we must force -fPIC in build flags. 28*4882a593SmuzhiyunHOST_LIBIBERTY_CONF_ENV = \ 29*4882a593Smuzhiyun CFLAGS="$(HOST_CFLAGS) -fPIC" \ 30*4882a593Smuzhiyun LDFLAGS="$(HOST_LDFLAGS) -fPIC" 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun$(eval $(host-autotools-package)) 33