package/sentry-cli: pass HOST_LDFLAGS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 4 Oct 2020 18:41:57 +0000 (20:41 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Oct 2020 20:02:55 +0000 (22:02 +0200)
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>
package/sentry-cli/sentry-cli.mk

index c4dbc5ebfdddd28c6b94b6531eb37e6781e41d57..7e53f16026500e8f4d8e36ea0421ab9366047afb 100644 (file)
@@ -11,7 +11,9 @@ SENTRY_CLI_LICENSE_FILES = LICENSE
 
 HOST_SENTRY_CLI_DEPENDENCIES = host-rustc host-zlib
 
-HOST_SENTRY_CLI_CARGO_ENV = CARGO_HOME=$(HOST_DIR)/share/cargo
+HOST_SENTRY_CLI_CARGO_ENV = \
+       CARGO_HOME=$(HOST_DIR)/share/cargo \
+       RUSTFLAGS="$(addprefix -C link-args=,$(HOST_LDFLAGS))"
 
 HOST_SENTRY_CLI_CARGO_OPTS = \
        --release \