]> code.ossystems Code Review - openembedded-core.git/commitdiff
go-native: use libdir_native
authorDan McGregor <dan.mcgregor@usask.ca>
Wed, 9 May 2018 16:31:27 +0000 (10:31 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 May 2018 09:00:29 +0000 (10:00 +0100)
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.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/go/go-native.inc

index b76fb0825e404d411b94a992b539e629d6c3aba2..207708745e0b5c9cd800c738a2c19027b9a8f4d0 100644 (file)
@@ -1,7 +1,3 @@
-# Use immediate assingment here to get the original (/usr/lib)
-# instead of the one rewritten by native.bbclass.
-nonstaging_libdir := "${libdir}"
-
 inherit native
 
 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() {
 }
 
 do_compile() {
-       export GOROOT_FINAL="${nonstaging_libdir}/go"
+       export GOROOT_FINAL="${libdir_native}/go"
        export GOROOT_BOOTSTRAP="${WORKDIR}/go1.4/go"
 
        cd src