summaryrefslogtreecommitdiffstats
path: root/meta/classes/go.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r--meta/classes/go.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index e6c3591479..21b1a0271e 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -118,7 +118,7 @@ go_do_install() {
118 tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ 118 tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \
119 tar -C ${D}${libdir}/go --no-same-owner -xf - 119 tar -C ${D}${libdir}/go --no-same-owner -xf -
120 120
121 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then 121 if ls ${B}/${GO_BUILD_BINDIR}/* >/dev/null 2>/dev/null ; then
122 install -d ${D}${bindir} 122 install -d ${D}${bindir}
123 install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ 123 install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/
124 fi 124 fi
@@ -145,11 +145,11 @@ FILES_${PN}-staticdev = "${libdir}/go/pkg"
145 145
146INSANE_SKIP_${PN} += "ldflags" 146INSANE_SKIP_${PN} += "ldflags"
147 147
148# Add -buildmode=pie to GOBUILDFLAGS to satisfy "textrel" QA checking, but mips 148# Add -buildmode=pie to GOBUILDFLAGS to satisfy "textrel" QA checking, but
149# doesn't support -buildmode=pie, so skip the QA checking for mips and its 149# windows/mips/riscv doesn't support -buildmode=pie, so skip the QA checking
150# variants. 150# for windows/mips/riscv and their variants.
151python() { 151python() {
152 if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH'): 152 if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH') or 'windows' in d.getVar('TARGET_GOOS'):
153 d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel") 153 d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel")
154 else: 154 else:
155 d.appendVar('GOBUILDFLAGS', ' -buildmode=pie') 155 d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')