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

Fix static build on FreeBSD #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

artemist
Copy link

Similar to the previous illumos issue (#61), FreeBSD does not expose gettimeofday with the set value of _POSIX_C_SOURCE. The same fix, configuring liblzma to use clock_gettime, works on FreeBSD.

It might be useful to extend this patch to also match other BSD (or even System V) derivatives but I have only tested this on FreeBSD.

Similar to the previous illumos issue, FreeBSD does not
expose `gettimeofday` with the set value of `_POSIX_C_SOURCE`.
The same fix, configuring liblzma to use `clock_gettime`,
works on FreeBSD.
@UnitedMarsupials
Copy link

Hi, @artemist. Perhaps, you can also offer a patch for the #125 -- to make sure, the system-provided -lzma is detected?

@artemist
Copy link
Author

It's not an issue I've noticed, since I've been working on FreeBSD nix (same kernel and libc, but very different build environment).

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