Commit 0305226
committed
CMakeLists.txt: only pass -z relro,-z now to ELF linkers
8716c87 added -Wl,-z,relro,-z,now unconditionally, but macOS ld64 does
not support -z ("ld: unknown options: -z -z"), breaking the link on
macOS. Gate the flag on NOT APPLE; RELRO/BIND_NOW are ELF hardening
concepts with no Mach-O equivalent, and macOS builds PIE by default.1 parent 39fbc34 commit 0305226
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
0 commit comments