[arch-dev-public] Fun with LTO and stripping
Christian Rebischke
Chris.Rebischke at archlinux.org
Sat Dec 25 11:50:58 UTC 2021
On Sat, Dec 25, 2021 at 11:51:49AM +0100, Morten Linderud via arch-dev-public wrote:
> Just an additional headsup as we are on the topic of "LTO fun"; it seems like
> any Go packages utilizing cgo/the external linker seems to be just broken with
> LTO.
>
> The error looks like:
> net._cgo_3c1cec0c9a4e_C2func_getaddrinfo: relocation target _cgo_3c1cec0c9a4e_C2func_getaddrinfo not defined
>
> Please do just disable LTO if you spot this issue in your builds.
>
> --
> Morten Linderud
> PGP: 9C02FF419FECBE16
For anyone having trouble to do this: Set the `options` field in the
PKGBUILD. For example:
options=('!lto')
Merry Christmas,
Chris
-------------- 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/20211225/953f138e/attachment.sig>
More information about the arch-dev-public
mailing list