2021-02-18 19:41:59 -05:00
|
|
|
# Makefile - hhl - /usr/src/world/elfutils
|
|
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
2021-03-10 13:53:36 -05:00
|
|
|
#
|
2021-02-18 19:41:59 -05:00
|
|
|
distname = elfutils
|
|
|
|
distext = bz2
|
2022-05-10 09:41:52 -04:00
|
|
|
#patches += elfutils-wnoerror.patch
|
2021-03-10 13:53:36 -05:00
|
|
|
#patches += elfutils-musl-no-error.patch
|
|
|
|
#patches += elfutils-musl-no-cdefs.patch
|
2021-02-18 19:41:59 -05:00
|
|
|
include world.mk
|
|
|
|
|
|
|
|
export XFLAGS = --sysroot=$(DESTDIR)
|
|
|
|
config_opts += --host=$(tgt)
|
|
|
|
config_opts += --disable-debuginfod
|
|
|
|
define build_cmd
|
|
|
|
$(MAKE) -C $(objdir)/lib
|
|
|
|
$(MAKE) -C $(objdir)/libelf
|
|
|
|
endef
|
|
|
|
install_cmd = $(MAKE) DESTDIR=$(DESTDIR) -C $(objdir)/libelf install
|
|
|
|
|
|
|
|
define post_install
|
|
|
|
rm -rf $(libdir)/libelf.a
|
|
|
|
install -m644 $(objdir)/config/libelf.pc $(libdir)/pkgconfig
|
|
|
|
endef
|
|
|
|
|
|
|
|
include targets.mk
|