aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2022-06-12 01:00:05 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-06-20 12:09:51 -0400
commiteea5c954e9e41c44a6af9457453cc0f9958d2cc6 (patch)
treeb7b94be8e8999b5b1386959d7529f36f8602ba32
parent4e19bc7c96a9a5adbc72f5e454a75c4d8e498be4 (diff)
downloadmeta-virtualization-eea5c954e9e41c44a6af9457453cc0f9958d2cc6.tar.gz
meta-virtualization-eea5c954e9e41c44a6af9457453cc0f9958d2cc6.tar.bz2
meta-virtualization-eea5c954e9e41c44a6af9457453cc0f9958d2cc6.zip
umoci: adjust CGO_CFLAGS and CGO_LDFLAGS settings
The CGO_CFLAGS and CGO_LDFLAGS should use target flags instead of the nativesdk ones. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/umoci/umoci_git.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/umoci/umoci_git.bb b/recipes-containers/umoci/umoci_git.bb
index 3a719cc..5c1d1e9 100644
--- a/recipes-containers/umoci/umoci_git.bb
+++ b/recipes-containers/umoci/umoci_git.bb
@@ -61,8 +61,8 @@ do_compile() {
export CGO_ENABLED="1"
export CFLAGS=""
export LDFLAGS=""
- export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
- export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+ export CGO_CFLAGS="${TARGET_CFLAGS}"
+ export CGO_LDFLAGS="${TARGET_LDFLAGS}"
export GO111MODULE=off