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

cmake: do not echo most inherited LDFLAGS to config files #15617

Closed
wants to merge 5 commits into from

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
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