From: Changqing Li <[email protected]>
Signed-off-by: Changqing Li <[email protected]>
---
recipes-containers/umoci/umoci_git.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-containers/umoci/umoci_git.bb
b/recipes-containers/umoci/umoci_git.bb
index f148b7fa..e26b4ead 100644
--- a/recipes-containers/umoci/umoci_git.bb
+++ b/recipes-containers/umoci/umoci_git.bb
@@ -50,7 +50,7 @@ do_compile:class-native () {
# the executable (coredump)
# https://forum.snapcraft.io/t/patchelf-broke-my-binary/4928
# https://github.com/NixOS/patchelf/issues/146
- oe_runmake umoci.static
+ oe_runmake umoci.static BASE_LDFLAGS="-s -w -X
\${PROJECT}.gitCommit=\${COMMIT} -buildid="
# so the common install can find our binary
cp umoci.static umoci
@@ -73,7 +73,7 @@ do_compile() {
export BUILD_FLAGS="-trimpath"
cd ${S}
- oe_runmake umoci
+ oe_runmake umoci BASE_LDFLAGS="-s -w -X \${PROJECT}.gitCommit=\${COMMIT}
-buildid="
}
do_install() {
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9538):
https://lists.yoctoproject.org/g/meta-virtualization/message/9538
Mute This Topic: https://lists.yoctoproject.org/mt/117148695/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-