mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
Merge pull request #811 from marineam/cloudinit
cloudinit: fix building master version of cloudinit
This commit is contained in:
commit
9c4e0c450d
@ -13,7 +13,7 @@ else
|
|||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inherit cros-workon systemd udev
|
inherit cros-workon systemd toolchain-funcs udev
|
||||||
|
|
||||||
DESCRIPTION="coreos-cloudinit"
|
DESCRIPTION="coreos-cloudinit"
|
||||||
HOMEPAGE="https://github.com/coreos/coreos-cloudinit"
|
HOMEPAGE="https://github.com/coreos/coreos-cloudinit"
|
||||||
@ -31,6 +31,14 @@ RDEPEND="
|
|||||||
"
|
"
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
# setup CFLAGS and LDFLAGS for separate build target
|
||||||
|
export CGO_CFLAGS="-I${ROOT}/usr/include"
|
||||||
|
export CGO_LDFLAGS="-L${ROOT}/usr/lib"
|
||||||
|
|
||||||
|
if gcc-specs-pie; then
|
||||||
|
CGO_LDFLAGS+=" -fno-PIC"
|
||||||
|
fi
|
||||||
|
|
||||||
./build || die
|
./build || die
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user