Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Nov 20, 2024

Sync with autotools and filter out most linker flags inherited via
CMAKE_SHARED_LINKER_FLAGS (that includes LDFLAGS env) before
echoing them in libcurl.pc Libs.private and curl-config
--static-libs.

Keep inheriting -l, -L, -F, --library-path=, -framework
options.

Follow-up to e244d50 #15550
Follow-up to 9f56bb6 #14681
Follow-up to 8ed66f9

@vszakats
Copy link
Member Author

@diizzyy Does this fix your case?

@diizzyy
Copy link
Contributor

diizzyy commented Nov 20, 2024

Yes indeed, works well on my end. Thanks!

@vszakats vszakats changed the title cmake: do not echo most inherited LDFLAGS to config files cmake: do not echo most inherited LDFLAGS to config files Nov 20, 2024
@vszakats vszakats closed this in e233073 Nov 20, 2024
@vszakats
Copy link
Member Author

@diizzyy Thanks for testing! This is merged now.

@vszakats vszakats deleted the cm-pc-ldflags branch November 20, 2024 20:40
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Sync with autotools and filter out most linker flags inherited via
`CMAKE_SHARED_LINKER_FLAGS` (that includes `LDFLAGS` env) before
echoing them in `libcurl.pc` `Libs.private` and `curl-config`
`--static-libs`.

Keep inheriting `-l`, `-L`, `-F`, `--library-path=`, `-framework`
options.

Follow-up to e244d50 curl#15550
Follow-up to 9f56bb6 curl#14681
Follow-up to 8ed66f9

Closes curl#15617
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants