go_1.22.12.bb 468 B

123456789101112131415161718
  1. require go-${PV}.inc
  2. require go-target.inc
  3. inherit linuxloader
  4. CGO_LDFLAGS:append = " -no-pie"
  5. export GO_LDSO = "${@get_linuxloader(d)}"
  6. export CC_FOR_TARGET = "gcc"
  7. export CXX_FOR_TARGET = "g++"
  8. # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv32 and its
  9. # variants.
  10. python() {
  11. if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'):
  12. d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel")
  13. }