libiberty.mk 1.1 KB

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