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

Fall back to pkgconfig for resolving libtiff #290

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

qmfrederik
Copy link
Contributor

In certain configurations (e.g. when built in debug mode using the msvc compiler), the libtiff link library may have a 'd' suffix -- 'tiffd.lib' instead of tiff.lib. This is an explicit choice in the libtiff build process: https://gitlab.com/libtiff/libtiff/-/blob/master/cmake/WindowsSupport.cmake#L28

In this case, AC_CHECK_LIB(tiff, TIFFReadScanline) will fail because it doesn't search for tiffd.

Rather than hardcoding the tiffd variant, use pkg-config to find libtiff.

@qmfrederik
Copy link
Contributor Author

See also https://github.com/gnustep/tools-windows-msvc/blob/master/phases/43-libtiff.bat#L34-L36 - another workaround for the same problem.

configure.ac Outdated Show resolved Hide resolved
In certain configurations (e.g. when built in debug mode using the msvc compiler), the libtiff link library may have a 'd' suffix -- 'tiffd'. `AC_CHECK_LIB(tiff, TIFFReadScanline)` will fail because it doesn't search for `tiffd`.

Rather than hardcoding the `tiffd` variant, use pkg-config to find libtiff.
@fredkiefer fredkiefer merged commit 22e5304 into gnustep:master Sep 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants