Skip to content

INSTALL.md: suggest -Wl,-dead_strip for Apple targets#20346

Closed
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:macossize
Closed

INSTALL.md: suggest -Wl,-dead_strip for Apple targets#20346
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:macossize

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Jan 18, 2026

For reducing binary size. Also to remove (or greatly mitigate)
the side-effect of using "unity" builds. Similar to -Wl,--gc-sections
on non-Apple platforms.

For example with curl-for-win builds, macOS arm+intel:

curl (unity): 7.7MB -> 6.8MB
libcurl.dylib (unity): 7.2MB -> 6.4MB
trurl /w static libcurl (!unity): 535KB -> 251KB (same size with unity)

Ref: curl/curl-for-win@c4008d6

@vszakats vszakats added documentation performance appleOS specific to an Apple operating system labels Jan 18, 2026
@vszakats vszakats changed the title INSTALL.md: suggest -Wl,-dead_strip for macOS INSTALL.md: suggest -Wl,-dead_strip for Apple targets Jan 18, 2026
@vszakats vszakats closed this in 0fdc61f Jan 18, 2026
@vszakats vszakats deleted the macossize branch January 18, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system documentation performance

Development

Successfully merging this pull request may close these issues.

1 participant