mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
skopeo: clean up depends and fix CGO settings
According to https://github.com/containers/skopeo/blob/main/install.md#building-from-source, the ostree dependency is not needed. Also, adjust the CGO_CFLAGS and CGO_LDFALGS to use target flags instead of the SDK ones. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
8f15a73bcf
commit
ce03a8868f
|
@ -9,7 +9,6 @@ DEPENDS = " \
|
|||
lvm2 \
|
||||
btrfs-tools \
|
||||
glib-2.0 \
|
||||
ostree \
|
||||
"
|
||||
|
||||
inherit go
|
||||
|
@ -61,8 +60,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}"
|
||||
cd ${S}/src/import
|
||||
|
||||
export GO111MODULE=off
|
||||
|
|
Loading…
Reference in New Issue
Block a user