Skip to content
Snippets Groups Projects
Commit cf359e7f authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Restore build under clang.

parent 343448b7
No related branches found
No related tags found
Loading
Pipeline #
......@@ -525,11 +525,12 @@ int main(int argc, char **argv) {
# used on macOS, FreeBSD,
# FORTIFY needs LTO to work well
if ctx.env.DEST_OS not in ["darwin", "freebsd"]:
# -flto breaks tests on macOS
ctx.env.CFLAGS = [
"-fsanitize=cfi", # hardening
"-fsanitize=safe-stack", # hardening
] + ctx.env.CFLAGS
# -flto and friends breaks tests on macOS
#ctx.env.CFLAGS = [
# "-flto"
# "-fsanitize=cfi", # hardening
# "-fsanitize=safe-stack", # hardening
# ] + ctx.env.CFLAGS
ctx.env.LDFLAGS += [
"-Wl,-z,relro", # hardening, marks some section read only,
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment