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