0e09875f09
Pass HOST_LDFLAGS to avoid the following build failure due to missing RPATH: *** ERROR: package host-sentry-cli installs executables without proper RPATH: *** /srv/storage/autobuild/run/instance-3/output-1/host/bin/sentry-cli Fixes: - http://autobuild.buildroot.org/results/d52638baefec961ff693aecf833af7adfc482fe4 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
33 lines
906 B
Makefile
33 lines
906 B
Makefile
################################################################################
|
|
#
|
|
# sentry-cli
|
|
#
|
|
################################################################################
|
|
|
|
SENTRY_CLI_VERSION = 1.57.0
|
|
SENTRY_CLI_SITE = $(call github,getsentry,sentry-cli,$(SENTRY_CLI_VERSION))
|
|
SENTRY_CLI_LICENSE = BSD-3-clause
|
|
SENTRY_CLI_LICENSE_FILES = LICENSE
|
|
|
|
HOST_SENTRY_CLI_DEPENDENCIES = host-rustc host-zlib
|
|
|
|
HOST_SENTRY_CLI_CARGO_ENV = \
|
|
CARGO_HOME=$(HOST_DIR)/share/cargo \
|
|
RUSTFLAGS="$(addprefix -C link-args=,$(HOST_LDFLAGS))"
|
|
|
|
HOST_SENTRY_CLI_CARGO_OPTS = \
|
|
--release \
|
|
--manifest-path=$(@D)/Cargo.toml
|
|
|
|
define HOST_SENTRY_CLI_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_SENTRY_CLI_CARGO_ENV) \
|
|
cargo build $(HOST_SENTRY_CLI_CARGO_OPTS)
|
|
endef
|
|
|
|
define HOST_SENTRY_CLI_INSTALL_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/target/release/sentry-cli \
|
|
$(HOST_DIR)/bin/sentry-cli
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|