You are not logged in.

#1 2021-11-25 10:48:39

Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,404

Building with go lacks FULL RELRO, check LDFLAGS [solved]

I created a PKGBUILD for shonenjump which is written in go.  Not being experienced with go, I fear my build command (line 18) is not right.

go build -v -buildmode=pie -ldflags "-extldflags \"$LDFLAGS\""

Although the package builds successfully, namcap complains:

shonenjump W: ELF file ('usr/bin/shonenjump') lacks FULL RELRO, check LDFLAGS.

EDIT: go build -buildmode=pie -ldflags "-linkmode=external -extldflags=$LDFLAGS"

Last edited by graysky (2021-11-25 13:07:26)

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs


Board footer

Powered by FluxBB