[OE-core] [PATCH] go-dep: Fix build with hardening flags

Matt Madison matt at madison.systems
Fri Sep 22 13:13:36 UTC 2017


On Thu, Sep 21, 2017 at 11:05 PM, Khem Raj <raj.khem at gmail.com> wrote:
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  meta/recipes-devtools/go/go-dep_0.3.0.bb | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-devtools/go/go-dep_0.3.0.bb b/meta/recipes-devtools/go/go-dep_0.3.0.bb
> index abfeb48370..20ea792c52 100644
> --- a/meta/recipes-devtools/go/go-dep_0.3.0.bb
> +++ b/meta/recipes-devtools/go/go-dep_0.3.0.bb
> @@ -11,6 +11,10 @@ SRCREV = "7a91b794bbfbf1f3b8b79823799316451127801b"
>
>  inherit go
>
> +TUNE_CCARGS_remove = "-march=mips32r2"
> +SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
> +SECURITY_LDFLAGS = ""

The SECURITY* settings should go into go.bbclass, since every go
recipe will need them.

-Matt

> +
>  GO_INSTALL = "${GO_IMPORT}/cmd/dep"
>
>  RDEPENDS_${PN}-dev += "bash"
> --
> 2.14.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list