diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2018-05-09 10:31:27 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-15 10:56:49 +0100 |
commit | e2f9287446446f854f5d50a3cbbd45b69d418374 (patch) | |
tree | 6c0db3a5c660e0ca212586688b54c35e244f1599 /meta/recipes-devtools/go/go-native.inc | |
parent | 9ddb1093708dee853384a1cc28cadddcc293016b (diff) | |
download | poky-e2f9287446446f854f5d50a3cbbd45b69d418374.tar.gz |
go-native: use libdir_native
Setting staging_libdir to libdir caused unnecessary rebuilds of
go-native when switching from a multilib build to a non-multilib
build. Switch to libdir_native because it doesn't change based on
target configuration.
(From OE-Core rev: af1ba0dfc904c78e3e030b9d81806f8269e66c56)
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-native.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-native.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc index b76fb0825e..207708745e 100644 --- a/meta/recipes-devtools/go/go-native.inc +++ b/meta/recipes-devtools/go/go-native.inc | |||
@@ -1,7 +1,3 @@ | |||
1 | # Use immediate assingment here to get the original (/usr/lib) | ||
2 | # instead of the one rewritten by native.bbclass. | ||
3 | nonstaging_libdir := "${libdir}" | ||
4 | |||
5 | inherit native | 1 | inherit native |
6 | 2 | ||
7 | SRC_URI_append = " https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz;name=bootstrap;subdir=go1.4" | 3 | SRC_URI_append = " https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz;name=bootstrap;subdir=go1.4" |
@@ -20,7 +16,7 @@ do_configure() { | |||
20 | } | 16 | } |
21 | 17 | ||
22 | do_compile() { | 18 | do_compile() { |
23 | export GOROOT_FINAL="${nonstaging_libdir}/go" | 19 | export GOROOT_FINAL="${libdir_native}/go" |
24 | export GOROOT_BOOTSTRAP="${WORKDIR}/go1.4/go" | 20 | export GOROOT_BOOTSTRAP="${WORKDIR}/go1.4/go" |
25 | 21 | ||
26 | cd src | 22 | cd src |