Open
Description
The detection of freebsd
version invokes a freebsd-version
executable:
Lines 122 to 123 in 5f7c6c1
however that only meaningfully works when building on a freebsd host. When building on any other host and targeting a freebsd, libc
will always default to targeting a freebsd11.0:
Lines 26 to 34 in 5f7c6c1
Thus making it difficult to e.g.
- Cross-compile a library or binary that relies on freebsd12.0 or freebsd13.0 APIs;
- CI test other libraries that rely on freebsd12.0 or freebsd13.0 APIs.
Note that adding a freebsd-version
executable to the path is not a very viable solution – some builds running in parallel may target other versions of freebsd too.