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

Add -lssp to windows builds since zstd and zlib are built with stack protection #1184

Merged
merged 5 commits into from
Jul 8, 2024

Conversation

milindl
Copy link
Contributor

@milindl milindl commented Apr 23, 2024

Fixes #965
This error has been there since 2.0.0 onwards after the CI was changed.
The static librdkafka bundle includes libzstd and libz, both of which are built with -fstack-protector (they are obtained from MinGW, not built).

Thus, linkage to libssp is needed to make cgo compilation work.

@milindl milindl requested a review from a team April 23, 2024 10:29
Copy link
Contributor

@emasab emasab left a comment

Choose a reason for hiding this comment

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

LGTM Thanks Milind

@milindl milindl requested a review from a team as a code owner July 4, 2024 04:58
@milindl milindl enabled auto-merge (squash) July 4, 2024 05:01
@milindl milindl requested a review from emasab July 4, 2024 05:02
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Emanuele Sabellico <[email protected]>
@milindl milindl merged commit 1a61ed7 into master Jul 8, 2024
1 of 2 checks passed
@milindl milindl deleted the dev_add_libssp_to_windows_linking branch July 8, 2024 07:07
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.

Link edit errors after upgrade from v1.9.2 to v2.0.2
2 participants