Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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
  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-zstd
  29. ifeq ($(HOST_OS),Darwin)
  30. HOST_CONFIGURE_ARGS += --disable-symbol-versioning
  31. endif
  32. Hooks/HostConfigure/Pre := Host/Gnulib $(Hooks/HostConfigure/Pre)
  33. define Host/Gnulib
  34. cd $(HOST_BUILD_DIR); $(STAGING_DIR_HOST)/bin/gnulib-tool --libtool --source-base=libgnu --import argp obstack fts strchrnul progname tsearch;
  35. ln -sf ../lib/eu-config.h $(HOST_BUILD_DIR)/libgnu/;
  36. endef
  37. define Host/Uninstall
  38. -$(call Host/Compile/Default,uninstall)
  39. endef
  40. $(eval $(call HostBuild))