Skip to content

Fix GH-17855: CURL_STATICLIB flag set even if linked with shared lib #17857

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Feb 18, 2025

We must define CURL_STATICLIB only when building against a static libcurl. The detection relies on our usual naming conventions, what should be revised in the future (possibly using pkg-config, or switching to CMake).

We must define `CURL_STATICLIB` only when building against a static
libcurl.  The detection relies on our usual naming conventions, what
should be revised in the future (possibly using pkg-config, or
switching to CMake).
@cmb69 cmb69 linked an issue Feb 18, 2025 that may be closed by this pull request
@cmb69 cmb69 marked this pull request as ready for review February 18, 2025 19:43
@cmb69 cmb69 requested a review from adoy as a code owner February 18, 2025 19:43
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSTM

@cmb69 cmb69 closed this in 29c39a3 Feb 21, 2025
cmb69 added a commit that referenced this pull request Feb 21, 2025
We must define `CURL_STATICLIB` only when building against a static
libcurl.  The detection relies on our usual naming conventions, what
should be revised in the future (possibly using pkg-config, or
switching to CMake).

Closes GH-17857.
@cmb69 cmb69 deleted the cmb/gh17855 branch February 21, 2025 12:15
charmitro pushed a commit to wasix-org/php that referenced this pull request Mar 13, 2025
We must define `CURL_STATICLIB` only when building against a static
libcurl.  The detection relies on our usual naming conventions, what
should be revised in the future (possibly using pkg-config, or
switching to CMake).

Closes phpGH-17857.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CURL_STATICLIB flag set even if linked with shared lib
2 participants