1 # SPDX-License-Identifier: GPL-2.0-only
3 include $(TOPDIR
)/rules.mk
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
10 PKG_SOURCE_URL
:=https
://sourceware.org
/$(PKG_NAME
)/ftp
/$(PKG_VERSION
)
11 PKG_HASH
:=39bd8f1a338e2b7cd4abc3ff11a0eddc6e690f69578a57478d8179b4148708c8
13 PKG_LICENSE
:=GPL-3.0
-or-later
14 PKG_LICENSE_FILES
:=COPYING COPYING-GPLV2 COPYING-LGPLV3
15 PKG_CPE_ID
:=cpe
:/a
:elfutils_project
:elfutils
20 include $(INCLUDE_DIR
)/host-build.mk
22 ifeq ($(HOST_OS
),Darwin
)
23 HOST_CFLAGS
+= -I
/opt
/homebrew
/include
26 HOST_CFLAGS
+= -Wno-error
-fPIC
28 HOST_CONFIGURE_ARGS
+= \
29 --without-libintl-prefix \
30 --without-libiconv-prefix \
31 --disable-debuginfod \
32 --disable-libdebuginfod \
40 ifeq ($(HOST_OS
),Darwin
)
41 HOST_CONFIGURE_ARGS
+= --disable-symbol-versioning
44 Hooks
/HostConfigure
/Pre
:= Host
/Gnulib
$(Hooks
/HostConfigure
/Pre
)
46 cd
$(HOST_BUILD_DIR
); $(STAGING_DIR_HOST
)/bin
/gnulib-tool
--libtool
--source-base
=libgnu
--import argp obstack fts strchrnul progname tsearch
;
47 ln
-sf ..
/lib
/eu-config.h
$(HOST_BUILD_DIR
)/libgnu
/;
51 -$(call Host
/Compile
/Default
,uninstall)
54 $(eval
$(call HostBuild
))