mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 21:41:05 +02:00
cloudinit: fix building master version of cloudinit
cloudinit now includes to CGO stuff for interacting with serial ports.
This commit is contained in:
parent
d0207f1595
commit
a953c6e5c5
@ -13,7 +13,7 @@ else
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
inherit cros-workon systemd udev
|
||||
inherit cros-workon systemd toolchain-funcs udev
|
||||
|
||||
DESCRIPTION="coreos-cloudinit"
|
||||
HOMEPAGE="https://github.com/coreos/coreos-cloudinit"
|
||||
@ -31,6 +31,14 @@ RDEPEND="
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user