Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=elfutils
  4. PKG_VERSION:=0.189
  5. PKG_RELEASE:=1
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  7. PKG_SOURCE_URL:=https://sourceware.org/$(PKG_NAME)/ftp/$(PKG_VERSION)
  8. PKG_HASH:=39bd8f1a338e2b7cd4abc3ff11a0eddc6e690f69578a57478d8179b4148708c8
  9. PKG_LICENSE:=GPL-3.0-or-later
  10. PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
  11. PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils
  12. PKG_FIXUP:=autoreconf
  13. PKG_INSTALL:=1
  14. include $(INCLUDE_DIR)/host-build.mk
  15. ifeq ($(HOST_OS),Darwin)
  16. HOST_CFLAGS += -I/opt/homebrew/include
  17. endif
  18. HOST_CFLAGS += -Wno-error -fPIC
  19. HOST_CONFIGURE_ARGS += \
  20. --without-libintl-prefix \
  21. --without-libiconv-prefix \
  22. --disable-debuginfod \
  23. --disable-libdebuginfod \
  24. --disable-nls \
  25. --disable-shared \
  26. --enable-static \
  27. --without-lzma \
  28. --without-bzlib \
  29. --without-zstd
  30. ifeq ($(HOST_OS),Darwin)
  31. HOST_CONFIGURE_ARGS += --disable-symbol-versioning
  32. endif
  33. Hooks/HostConfigure/Pre := Host/Gnulib $(Hooks/HostConfigure/Pre)
  34. define Host/Gnulib
  35. cd $(HOST_BUILD_DIR); $(STAGING_DIR_HOST)/bin/gnulib-tool --libtool --source-base=libgnu --import argp obstack fts strchrnul progname tsearch;
  36. ln -sf ../lib/eu-config.h $(HOST_BUILD_DIR)/libgnu/;
  37. endef
  38. define Host/Uninstall
  39. -$(call Host/Compile/Default,uninstall)
  40. endef
  41. $(eval $(call HostBuild))