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:
Mathieu Tortuyaux 2025-05-14 13:42:12 +02:00
parent 4bc0e8c915
commit 761719aa4a
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -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"