Commit graph

3 commits

Author SHA1 Message Date
DataHoarder c9b07c6bec Added +build comment
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 01:33:20 +01:00
DataHoarder 88633d8444 Updated go build options on files
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-27 17:21:09 +01:00
Randy Reddig 25a249fbd5 feat: build without libopusfile using go build tag
This patch introduces a new build tag `nolibopusfile` that conditionally
compiles out the code that imports `libopusfile`. This enables a static
binary build on Alpine Linux, which doesn’t have a static `libopusfile`.

Tests still work:

```sh
go test -tags nolibopusfile ./...
go test ./...
```

We could also have moved all libopusfile related code (i.e. Stream) into
a separate sub-package, but that would break backwards compatibility.
This feature is too unpopular to justify introducing a new major
version.

See also: https://github.com/hraban/opus/pull/24
2020-07-10 13:54:23 +01:00