-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
libtiff: switch back to CMake and fix static #366566
Conversation
0b80090
to
db5632b
Compare
Since libwebp was switched to CMake, the .la files that told static builds which libraries had to be linked with libwebp are no longer generated, breaking static builds. By switching libtiff to CMake too, we can use the CMake files instead. (This is necessary, but not sufficient, for static builds to work — a further patch is required.) This was tried once before (in 96d5032 ("libtiff: export private headers for freeimage")), and I reverted it (in 5df9305 ("libtiff: fix cross by switching back to autoconf")), because at the time, it broke cross compilation of libtiff. Things seem to have settled since then, and this now cross compiles correctly. Fixes: 909c491 ("libwebp: build with CMake")
db5632b
to
f72ee06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change and it looks good to me (not tested).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this used CMake previously,
-DCMAKE_SKIP_BUILD_RPATH=OFF
was required for the tests to pass on Darwin. We'll see if that's still necessary, either via OfBorg or if somebody wants to try a test build on Darwin themself.
Apparently not. Built on x86_64-darwin
(rebased on top of master
).
Thanks @emilazy |
Since libwebp was switched to CMake, the .la files that told static builds which libraries had to be linked with libwebp are no longer generated, breaking static builds. By switching libtiff to CMake too, we can use the CMake files instead. A further patch to fix libtiff's linker choice then restores static builds.
CMake was tried once before, and I reverted it, because at the time, it broke cross compilation of libtiff. Things seem to have settled since then, and this now cross compiles correctly.
When this used CMake previously,
-DCMAKE_SKIP_BUILD_RPATH=OFF
was required for the tests to pass on Darwin. We'll see if that's still necessary, either via OfBorg or if somebody wants to try a test build on Darwin themself.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.