Open pdecat opened 3 hours ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
@golang/tools-team
Is there a list of valid values of ftls-model? Could we make the regexp more restrictive? I think it should at least be '-ftls-model=([a-z-]*)'
assuming that all the valid values match? (Doing a quick search they seem to?)
According to GCC docs, valid values are: global-dynamic
, local-dynamic
, initial-exec
and local-exec
.
Okay, then I think we should we add -ftls-model=(global-dynamic|local-dynamic|initial-exec|local-exec)
Go version
go version go1.23.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Added
-ftls-model=local-dynamic
to a# cgo CFLAGS:
directive to work-around issues withinitial-exec
thread-local storage model on alpine with musl.What did you see happen?
What did you expect to see?
Build should work normally.
Work-around: define
CGO_CFLAGS_ALLOW='-ftls-model=(.*)'
environment variable.