Commit 7d984d8c authored by John Koleszar's avatar John Koleszar
Browse files

Disable FORTIFY_SOURCE on glibc targets

Improve binary distributions by defeating longjmp interception. See for more information.

Change-Id: I5ac731ec3f3570088597201d0f411473e2dffa4f
parent 8ef25de3
......@@ -952,6 +952,10 @@ process_common_toolchain() {
# shared objects
enabled gcc && enabled pic && check_add_cflags -fPIC
# Work around longjmp interception on glibc >= 2.11, to improve binary
# compatibility. See
enabled linux && check_add_cflags -D_FORTIFY_SOURCE=0
# Check for strip utility variant
${STRIP} -V 2>/dev/null | grep GNU >/dev/null && enable gnu_strip
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment