[arch-dev-public] Fun with LTO and stripping

Morten Linderud foxboron at archlinux.org
Sat Dec 25 10:51:49 UTC 2021


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
-------------- 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/ea3ac117/attachment.sig>


More information about the arch-dev-public mailing list