diff options
author | 2021-11-06 12:21:04 -0400 | |
---|---|---|
committer | 2021-11-06 12:47:19 -0400 | |
commit | b64de1f188e6f675cadf02c77bc72b06ed728eeb (patch) | |
tree | c2df0246f3814d91dc1a7ac632708013febe62ea | |
parent | 3fea81e4c58f7c0f263341a96eec2cca39e87a59 (diff) | |
download | meta-virtualization-b64de1f188e6f675cadf02c77bc72b06ed728eeb.tar.gz meta-virtualization-b64de1f188e6f675cadf02c77bc72b06ed728eeb.tar.bz2 meta-virtualization-b64de1f188e6f675cadf02c77bc72b06ed728eeb.zip |
easyjson: -native recipe, statically linkedeasyjson
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-devtools/go/easyjson_git.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-devtools/go/easyjson_git.bb b/recipes-devtools/go/easyjson_git.bb new file mode 100644 index 0000000..ef92708 --- /dev/null +++ b/recipes-devtools/go/easyjson_git.bb @@ -0,0 +1,27 @@ +SUMMARY = "easyjson" +DESCRIPTION = "easy json command util" +HOMEPAGE = "https://github.com/mailru/easyjson" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=819e81c2ec13e1bbc47dc5e90bb4d88b" + +RDEPENDS_${PN}-dev += "bash" + +SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https" +SRCREV = "11c9d7f52fd019df40f13aeecd28f11d941be9e3" +PV="v0.7.7+git${SRCPV}" + +GO_IMPORT = "github.com/mailru/easyjson" +GO_WORKDIR ?= "${GO_IMPORT}/easyjson" + +GO_LINKSHARED = "" +export CGO_ENABLED = "1" + +inherit go-mod + +BBCLASSEXTEND = "native" + +GO_EXTLDFLAGS = "-static" +# Upstream class "forgot" this argument +#GOBUILDFLAGS:append = " -trimpath" + +INSANE_SKIP = "arch" |