Skip to content

Switch linking on Windows to use pkg-config when available. #478

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

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

kalibera
Copy link
Contributor

@kalibera kalibera commented Mar 3, 2025

This patch switches to using pkg-config to establish libraries to link (and C preprocessor directives to use) on Windows. This allows the package to work with an upcoming version of Rtools, which includes libgit2 linked against pcre2 (previously, pcre 1 was used). Pkg-config is used conditionally; when it is not available, the old hard-coded linking is used assuming pcre 1. With this patch applied, the package builds with Rtools42,43,44 and upcoming 45 on my system - with the matching versions of R.

@stewid stewid merged commit 0020779 into ropensci:main Mar 4, 2025
4 checks passed
@stewid
Copy link
Member

stewid commented Mar 4, 2025

Thanks, much appreciated.

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