Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C6F1CDE00A for ; Fri, 14 Nov 2025 05:51:07 +0000 (UTC) Subject: Re: [master][scarthgap][meta-virtualization][PATCH] kubernetes: skip textrel QA warning To: meta-virtualization@lists.yoctoproject.org From: nvhieudt11@gmail.com X-Originating-Location: KR (203.247.149.151) X-Originating-Platform: Windows Chrome 122 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 13 Nov 2025 21:50:58 -0800 References: <20240430061733.3518484-1-changqing.li@windriver.com> In-Reply-To: Message-ID: <445921.1763099458031068955@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="YRHDUUKgRS6EEGPFoDWk" List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 14 Nov 2025 05:51:07 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-virtualization/message/9440 --YRHDUUKgRS6EEGPFoDWk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Changqing Li, Bruce! My understanding is that CGO is disabled directly in the build script because building statically can fail on certain environments that don=E2=80= =99t have all the required static libraries. However, for meta-layer builds with Yocto, could we enable CGO and set -extldflags "-static" so that we can apply some default security flags from Yocto, such as PIE an= d RELRO? https://git.yoctoproject.org/poky/plain/meta/conf/distro/include/security_f= lags.inc?h=3Dscarthgap Could there be any runtime issues when enabling CGO and building statically= ? I hope to receive your feedback. Hieu --YRHDUUKgRS6EEGPFoDWk Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Changqing Li, Bruce!

My understandin= g is that CGO is disabled directly in the build script
because building statically can fail on certain en= vironments that don’t
have all the required static libraries. However, f= or meta-layer builds
with Yocto, could we enable CGO and set -ext= ldflags "-static"
so that we can apply some default security flags f= rom Yocto, such as PIE and RELRO?
 
 
Could there be any runtime issues when enabling CG= O and building statically?
I hope to receive your feedback.
Hieu<= /span>
--YRHDUUKgRS6EEGPFoDWk--