mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
INSTALL.md: suggest -Wl,-dead_strip for Apple targets
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: c4008d658a
Closes #20346
This commit is contained in:
parent
57c2690f7e
commit
0fdc61ffd7
@ -563,7 +563,7 @@ may be relevant in some environments: `-march=X`, `-mthumb`, `-m32`,
|
||||
`-mdynamic-no-pic`, `-flto`, `-fdata-sections`, `-ffunction-sections`,
|
||||
`-fno-unwind-tables`, `-fno-asynchronous-unwind-tables`,
|
||||
`-fno-record-gcc-switches`, `-fsection-anchors`, `-fno-plt`,
|
||||
`-Wl,--gc-sections`, `-Wl,-Bsymbolic`, `-Wl,-s`,
|
||||
`-Wl,--gc-sections`, `-Wl,-dead_strip` (Apple), `-Wl,-Bsymbolic`, `-Wl,-s`
|
||||
|
||||
For example, this is how to combine a few of these options:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user