diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-03-29 16:39:52 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-19 14:42:20 +0100 |
commit | 4e0d6af8322acc15d846f4725d34c28bad2a6c5b (patch) | |
tree | 383989c1ad1ed8f09827637fcfc5bf1b0c38e19d /meta/recipes-devtools | |
parent | ab9be8acf4a5f6f9c86a66d8c4183cf1f5724b2d (diff) | |
download | poky-4e0d6af8322acc15d846f4725d34c28bad2a6c5b.tar.gz |
go: Disable pie in cgo for mips
This overcomes the linking errors e.g.
| /usr/lib/go/src/cmd/go/internal/base/base.go:110:(.text+0x60fef8): relocation R_MIPS_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC | /usr/lib/go/src/cmd/go/internal/base/base.go:110:(.text+0x60ff0c): relocation R_MIPS_HI16 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
(From OE-Core rev: 4b379e94ea6d5b96245c8724689209b44cace562)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/go/go_1.18.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go_1.18.bb b/meta/recipes-devtools/go/go_1.18.bb index a492d7e64a..98977673ee 100644 --- a/meta/recipes-devtools/go/go_1.18.bb +++ b/meta/recipes-devtools/go/go_1.18.bb | |||
@@ -3,6 +3,8 @@ require go-target.inc | |||
3 | 3 | ||
4 | inherit linuxloader | 4 | inherit linuxloader |
5 | 5 | ||
6 | CGO_LDFLAGS:append:mips = " -no-pie" | ||
7 | |||
6 | export GO_LDSO = "${@get_linuxloader(d)}" | 8 | export GO_LDSO = "${@get_linuxloader(d)}" |
7 | export CC_FOR_TARGET = "gcc" | 9 | export CC_FOR_TARGET = "gcc" |
8 | export CXX_FOR_TARGET = "g++" | 10 | export CXX_FOR_TARGET = "g++" |