From: Jamin Lin <jamin_lin@aspeedtech.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [PATCH v1 1/1] Brotli: fix build failed if the path includes "-static"
Date: Fri, 3 Nov 2023 18:02:45 +0800 [thread overview]
Message-ID: <20231103100246.3899364-1-jamin_lin@aspeedtech.com> (raw)
It would like to remove "-static" in the name of statice library
at the do_install task. For example: replace libbrotlicommon-static.a
with ibbrotlicommon-static.a However, if the patch of
this statice library includes "-static", it would build failed.
(ex: set my build directory "build-static")
Change to remove "-static" in the base name of static library
to fix this build failed.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
---
meta-oe/recipes-extended/brotli/brotli_1.0.9.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-extended/brotli/brotli_1.0.9.bb b/meta-oe/recipes-extended/brotli/brotli_1.0.9.bb
index 4e2813dde..6492b1943 100644
--- a/meta-oe/recipes-extended/brotli/brotli_1.0.9.bb
+++ b/meta-oe/recipes-extended/brotli/brotli_1.0.9.bb
@@ -16,7 +16,8 @@ inherit cmake lib_package
do_install:append () {
for lib in $(ls ${D}${libdir}/*-static.a); do
- mv -v "${lib}" "$(echo ${lib} | sed s/-static//)"
+ basename=$(basename ${lib})
+ mv -v "${lib}" "${D}${libdir}$(echo ${basename} | sed s/-static//)"
done
}
--
2.34.1
next reply other threads:[~2023-11-03 10:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 10:02 Jamin Lin [this message]
2023-11-03 10:02 ` [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes) Jamin Lin
2023-11-03 17:07 ` [oe] " Khem Raj
2023-11-03 18:33 ` Tim Orling
2023-11-06 8:26 ` Jamin Lin
2023-11-06 8:25 ` Jamin Lin
-- strict thread matches above, loose matches on Subject: below --
2023-11-06 9:02 [PATCH v1 0/1] fix build failed if the path includes "-static" Jamin Lin
2023-11-06 9:02 ` [PATCH v1 1/1] Brotli: " Jamin Lin
2023-11-03 16:29 [oe] " Khem Raj
2023-11-06 8:18 ` Jamin Lin
2023-11-03 5:29 Jamin Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231103100246.3899364-1-jamin_lin@aspeedtech.com \
--to=jamin_lin@aspeedtech.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.