Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | From 90fbc3423b5ccdbd54b5851c32b9f92c6658d634 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 6 Jan 2023 17:30:24 -0800 |
| 4 | Subject: [PATCH] Do not emit useless rpath |
| 5 | |
| 6 | rpath is pointing to standard libdir which is un-used and yocto build QA |
| 7 | flag it, there is no need to set rpaths when building in this |
| 8 | environment |
| 9 | |
| 10 | Fixes |
| 11 | do_package_qa: QA Issue: trace-cmd: /usr/bin/trace-cmd contains probably-redundant RPATH /usr/lib [useless-rpaths] |
| 12 | |
| 13 | Upstream-Status: Inappropriate [OE-Specific] |
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 15 | --- |
| 16 | scripts/utils.mk | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/scripts/utils.mk b/scripts/utils.mk |
| 20 | index 3fc2d74f..309a8599 100644 |
| 21 | --- a/scripts/utils.mk |
| 22 | +++ b/scripts/utils.mk |
| 23 | @@ -64,7 +64,7 @@ do_compile = \ |
| 24 | |
| 25 | do_app_build = \ |
| 26 | ($(print_app_build) \ |
| 27 | - $(CC) $^ -rdynamic -Wl,-rpath=$(libdir) -o $@ $(LDFLAGS) $(CONFIG_LIBS) $(LIBS)) |
| 28 | + $(CC) $^ -rdynamic -o $@ $(LDFLAGS) $(CONFIG_LIBS) $(LIBS)) |
| 29 | |
| 30 | do_build_static_lib = \ |
| 31 | ($(print_static_lib_build) \ |
| 32 | -- |
| 33 | 2.39.0 |
| 34 | |