package/libexecinfo: new package

Provides execinfo.h for non-glibc toolchains.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls 2021-12-30 22:51:48 +01:00 committed by Thomas Petazzoni
parent 52bba69dc9
commit eea8ba446c
4 changed files with 41 additions and 0 deletions

View File

@ -1964,6 +1964,7 @@ menu "Other"
source "package/libev/Config.in"
source "package/libevdev/Config.in"
source "package/libevent/Config.in"
source "package/libexecinfo/Config.in"
source "package/libffi/Config.in"
source "package/libgee/Config.in"
source "package/libgeos/Config.in"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_LIBEXECINFO
bool "libexecinfo"
depends on !BR2_TOOLCHAIN_USES_GLIBC
help
Library for inspecting program's backtrace
https://github.com/mikroskeem/libexecinfo

View File

@ -0,0 +1,3 @@
# Locally computed
sha256 0462304192fab38c39a376594db1c8bdab4ebda2736bf54f01715917f430611e libexecinfo-1.1-3.tar.gz
sha256 46fbc8e6849a164c4ba8fd5875748bde302bf3cd713622af0e51b4e10344f516 execinfo.h

View File

@ -0,0 +1,30 @@
################################################################################
#
# libexecinfo
#
################################################################################
LIBEXECINFO_VERSION = 1.1-3
LIBEXECINFO_SITE = $(call github,mikroskeem,libexecinfo,$(LIBEXECINFO_VERSION))
LIBEXECINFO_LICENSE = BSD-2-Clause
LIBEXECINFO_LICENSE_FILES = execinfo.h
LIBEXECINFO_INSTALL_STAGING = YES
define LIBEXECINFO_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
EXECINFO_CFLAGS="$(TARGET_CFLAGS) -c"
endef
define LIBEXECINFO_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
EXECINFO_CFLAGS="$(TARGET_CFLAGS) -c" \
DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
endef
define LIBEXECINFO_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
EXECINFO_CFLAGS="$(TARGET_CFLAGS) -c" \
DESTDIR="$(TARGET_DIR)" PREFIX=/usr install
endef
$(eval $(generic-package))