mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 08:31:04 +02:00
app-containers/incus: fix cross-compilation issue
While building on `amd64`: ```bash dosbin: _dist/bin/linux_amd64/incusd does not exist ``` Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
4bc0e8c915
commit
761719aa4a
@ -158,7 +158,8 @@ src_test() {
|
||||
src_install() {
|
||||
export GOPATH="${S}/_dist"
|
||||
|
||||
if tc-is-cross-compiler ; then
|
||||
export GOHOSTARCH=$(go-env_goarch "${CBUILD}")
|
||||
if [ "${GOARCH}" != "${GOHOSTARCH}" ]; then
|
||||
local bindir="_dist/bin/linux_${GOARCH}"
|
||||
else
|
||||
local bindir="_dist/bin"
|
Loading…
x
Reference in New Issue
Block a user