Skip to contentSkip to conversation

go-dep: Fix build with hardening flags

PATCH In review Khem Raj 2 participants 2 messages Sep 22, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 go-dep: Fix build with hardening flags

---
 meta/recipes-devtools/go/go-dep_0.3.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/go/go-dep_0.3.0.bb +4 -0
index abfeb48370..20ea792c52 100644
@@ -11,6 +11,10 @@ SRCREV = "7a91b794bbfbf1f3b8b79823799316451127801b"
 
 inherit go
 
+TUNE_CCARGS_remove = "-march=mips32r2"
+SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
+SECURITY_LDFLAGS = ""
+
 GO_INSTALL = "${GO_IMPORT}/cmd/dep"
 
 RDEPENDS_${PN}-dev += "bash"
Signature · 1 line
2.14.1
#1 lore raw
Quoted 10 lines · Khem Raj
---
 meta/recipes-devtools/go/go-dep_0.3.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/go/go-dep_0.3.0.bb +0 -0
index abfeb48370..20ea792c52 100644

meta/recipes-devtools/go/go-dep_0.3.0.bb SRCREV = "7a91b794bbfbf1f3b8b79823799316451127801b" · line 16

Quoted 6 lines
meta/recipes-devtools/go/go-dep_0.3.0.bb +3 -0
@@ -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

Quoted 12 lines
meta/recipes-devtools/go/go-dep_0.3.0.bb +1 -1
+
 GO_INSTALL = "${GO_IMPORT}/cmd/dep"
 
 RDEPENDS_${PN}-dev += "bash"
--

2.14.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core