2022-03-28 15:40:30 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=elfutils
|
2024-03-04 05:04:36 +00:00
|
|
|
PKG_VERSION:=0.191
|
2022-03-28 15:40:30 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=https://sourceware.org/$(PKG_NAME)/ftp/$(PKG_VERSION)
|
2024-03-04 05:04:36 +00:00
|
|
|
PKG_HASH:=df76db71366d1d708365fc7a6c60ca48398f14367eb2b8954efc8897147ad871
|
2022-03-28 15:40:30 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
|
|
|
|
PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2024-04-07 19:28:03 +00:00
|
|
|
PKG_SUBDIRS := \
|
|
|
|
libgnu \
|
|
|
|
config \
|
|
|
|
lib \
|
|
|
|
libelf \
|
|
|
|
libcpu \
|
|
|
|
backends \
|
|
|
|
libebl \
|
|
|
|
libdwelf \
|
|
|
|
libdwfl \
|
|
|
|
libdw
|
|
|
|
|
2024-04-05 08:42:14 +00:00
|
|
|
PKG_GNULIB_BASE:=libgnu
|
|
|
|
|
|
|
|
PKG_GNULIB_ARGS = \
|
|
|
|
--dir=$(HOST_BUILD_DIR) \
|
|
|
|
--local-dir=$(STAGING_DIR_HOST)/share/gnulib \
|
|
|
|
--source-base=$(PKG_GNULIB_BASE) \
|
|
|
|
--libtool \
|
|
|
|
--import
|
|
|
|
|
|
|
|
PKG_GNULIB_MODS = \
|
|
|
|
argp \
|
|
|
|
dirname \
|
|
|
|
fts \
|
|
|
|
obstack \
|
|
|
|
progname \
|
|
|
|
strchrnul \
|
|
|
|
tsearch
|
|
|
|
|
2022-03-28 15:40:30 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2023-01-11 17:41:22 +00:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
|
|
HOST_CFLAGS += -I/opt/homebrew/include
|
|
|
|
endif
|
|
|
|
|
2023-11-01 16:44:43 +00:00
|
|
|
HOST_CFLAGS += -Wno-error -fPIC
|
2023-01-11 17:41:22 +00:00
|
|
|
|
2022-03-28 15:40:30 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2023-01-11 17:41:22 +00:00
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-libiconv-prefix \
|
2022-03-28 15:40:30 +00:00
|
|
|
--disable-debuginfod \
|
|
|
|
--disable-libdebuginfod \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-shared \
|
2023-01-11 17:41:22 +00:00
|
|
|
--enable-static \
|
2022-03-28 15:40:30 +00:00
|
|
|
--without-lzma \
|
2023-11-01 17:37:45 +00:00
|
|
|
--without-bzlib \
|
2022-03-28 15:40:30 +00:00
|
|
|
--without-zstd
|
|
|
|
|
2023-01-11 17:41:22 +00:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
|
|
HOST_CONFIGURE_ARGS += --disable-symbol-versioning
|
|
|
|
endif
|
|
|
|
|
|
|
|
Hooks/HostConfigure/Pre := Host/Gnulib $(Hooks/HostConfigure/Pre)
|
|
|
|
define Host/Gnulib
|
2024-04-05 08:42:14 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/gnulib-tool $(PKG_GNULIB_ARGS) $(PKG_GNULIB_MODS);
|
2023-01-11 17:41:22 +00:00
|
|
|
ln -sf ../lib/eu-config.h $(HOST_BUILD_DIR)/libgnu/;
|
|
|
|
endef
|
2022-05-18 22:53:49 +00:00
|
|
|
|
2024-04-07 19:28:03 +00:00
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Compile/Default,SUBDIRS='$$$$(wildcard $(PKG_SUBDIRS))')
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(call Host/Compile/Default,install SUBDIRS='$$$$(wildcard $(PKG_SUBDIRS))')
|
|
|
|
endef
|
|
|
|
|
2022-09-28 08:23:56 +00:00
|
|
|
define Host/Uninstall
|
|
|
|
-$(call Host/Compile/Default,uninstall)
|
|
|
|
endef
|
|
|
|
|
2022-03-28 15:40:30 +00:00
|
|
|
$(eval $(call HostBuild))
|