Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling libopusfile using build tag (v2) #31

Merged
merged 3 commits into from
Jul 10, 2020
Merged

Conversation

hraban
Copy link
Owner

@hraban hraban commented Jul 10, 2020

Building on the work of Randy Reddig from #24 with some further changes of my own

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: #24
He explicitly allowed me to license his contributions under MIT.

See #24 (comment)
@hraban hraban force-pushed the nolibopusfile branch 2 times, most recently from c076d66 to ab16b5a Compare July 10, 2020 12:52
@hraban hraban merged commit ebf5305 into v2 Jul 10, 2020
@hraban hraban deleted the nolibopusfile branch July 10, 2020 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants