[arch-dev-public] RFC: go-pie removal in favour of GOFLAGS

Morten Linderud foxboron at archlinux.org
Mon Apr 20 06:46:17 UTC 2020


On Mon, Apr 20, 2020 at 09:05:27AM +0300, Christoph Gysin wrote:
> On Mon, Apr 20, 2020 at 1:32 AM Morten Linderud via arch-dev-public <
> arch-dev-public at archlinux.org> wrote:
> 
> > https://wiki.archlinux.org/index.php/User:Foxboron/Go_packaging_guidelines
> >
> 
> In the fist example, you set both:
> 
> CGO_LDFLAGS=$LDFLAGS
> 
> and pass:
> 
> -ldflags "-extldflags ${LDFLAGS}"
> 
> Yet in the example PKGBUILD, only the former?

If you read the example: 
# *or alternatively* you can define some of these flags from the CLI options"

> Also, maybe it would be nice to have an example how to add additional
> ldflags correctly without overwriting LDFLAGS, e.g. passing:
> 
> -ldflags "-X my.package.Version=$pkgver"

The goal of the page is not to teach you how the go compiler works, but I'll
consider it.

Thanks

-- 
Morten Linderud
PGP: 9C02FF419FECBE16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-dev-public/attachments/20200420/c8fcce5d/attachment.sig>


More information about the arch-dev-public mailing list