This sample program needs to be built as follows (when built with Go prior to 1.15):
export CGO_LDFLAGS_ALLOW="-Wl,-?-wrap[=,][^-.@][^,]*" go mod tidy go build web.go
go1.15+ does not require the CGO_LDFLAGS_ALLOW
environment variable and can build this code with:
go mod tidy go build web.go
A more complete walk through of what this code does is provided on the Fully Capable website.
Go compilers prior to go1.11.13 are not expected to work. Report more recent issues to the libcap
bug tracker.