dostrip limitations mean that we cannot strip the CTARGET binaries in a cross-compiler. There is already a `dostrip -x` call to exclude such
binaries from stripping, but it expects the argument to be unprefixed,
and the argument given was prefixed.
Signed-off-by: James Le Cuirot <[email protected]>
---
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 602f994371452..486b5877be66d 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2641,7 +2641,7 @@ toolchain_src_install() {
# - "${D}${LIBPATH}"
# As dostrip does not specify host to override ${CHOST} tools just skip
# non-native binary stripping.
- is_crosscompile && dostrip -x "${LIBPATH}"
+ is_crosscompile && dostrip -x "${LIBPATH#${EPREFIX}}"
cd "${S}" || die
if is_crosscompile; then
--
2.47.1
On Mon, Dec 30, 2024 at 11:35:25PM +0000, James Le Cuirot wrote:
dostrip limitations mean that we cannot strip the CTARGET binaries in a cross-compiler. There is already a `dostrip -x` call to exclude such binaries from stripping, but it expects the argument to be unprefixed,
and the argument given was prefixed.
Signed-off-by: James Le Cuirot <[email protected]>
---
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 602f994371452..486b5877be66d 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2641,7 +2641,7 @@ toolchain_src_install() {
# - "${D}${LIBPATH}"
# As dostrip does not specify host to override ${CHOST} tools just skip
# non-native binary stripping.
- is_crosscompile && dostrip -x "${LIBPATH}"
+ is_crosscompile && dostrip -x "${LIBPATH#${EPREFIX}}"
Missing quotes in case of unlikely globs in EPREFIX
"${LIBPATH#"${EPREFIX}"}"
cd "${S}" || die
if is_crosscompile; then
--
2.47.1
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 163:59:26 |
| Calls: | 12,095 |
| Calls today: | 3 |
| Files: | 15,000 |
| Messages: | 6,517,794 |