Skip to content

don't use zlib-ng's -Wl,--version-script in tests#1750

Merged
Dead2 merged 2 commits intozlib-ng:developfrom
haampie:fix/symver-configure-script
Jun 28, 2024
Merged

don't use zlib-ng's -Wl,--version-script in tests#1750
Dead2 merged 2 commits intozlib-ng:developfrom
haampie:fix/symver-configure-script

Conversation

@haampie
Copy link
Copy Markdown
Contributor

@haampie haampie commented Jun 22, 2024

lld 18 errors when a version script assigns a version to a symbol that
is not defined in the object files. Therefore configure scripts should
not use the -Wl,--version-script,zlib.map script -- all tests that create a
dynamic library will fail

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.01%. Comparing base (80514c1) to head (5953990).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1750      +/-   ##
===========================================
- Coverage    83.02%   83.01%   -0.01%     
===========================================
  Files          135      135              
  Lines        10291    10291              
  Branches      2783     2783              
===========================================
- Hits          8544     8543       -1     
  Misses        1053     1053              
- Partials       694      695       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

lld 18 errors when a version script assigns a version to a symbol that
is not defined in the object files. Therefore configure scripts should
not use zlib-ng's version script -- all tests will fail.

Also test whether the linker supports the flag instead of assuming.
Copy link
Copy Markdown
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

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

LGTM

@haampie
Copy link
Copy Markdown
Contributor Author

haampie commented Jun 26, 2024

@Dead2 do you do backports for 2.1.x?

@Dead2
Copy link
Copy Markdown
Member

Dead2 commented Jun 26, 2024

@haampie Yes, I was thinking of backporting this to the 2.1.x branch.

@Dead2 Dead2 merged commit 5732b39 into zlib-ng:develop Jun 28, 2024
Dead2 pushed a commit that referenced this pull request Jun 28, 2024
lld 18 errors when a version script assigns a version to a symbol that
is not defined in the object files. Therefore configure scripts should
not use zlib-ng's version script -- all tests will fail.

Also test whether the linker supports the flag instead of assuming.
@haampie haampie deleted the fix/symver-configure-script branch July 12, 2024 17:54
@Dead2 Dead2 mentioned this pull request Sep 15, 2024
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.

2 participants