shithub: libvpx

Download patch

ref: 7d984d8c38e435eb662dd0e5c69e96e188495018
parent: 8ef25de377c069d0f217f1f6a59d38568e37d48c
author: John Koleszar <jkoleszar@google.com>
date: Fri Jul 29 10:23:32 EDT 2011

Disable FORTIFY_SOURCE on glibc targets

Improve binary distributions by defeating longjmp interception. See
http://code.google.com/p/webm/issues/detail?id=166 for more information.

Change-Id: I5ac731ec3f3570088597201d0f411473e2dffa4f

--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -952,6 +952,10 @@
     # shared objects
     enabled gcc && enabled pic && check_add_cflags -fPIC
 
+    # Work around longjmp interception on glibc >= 2.11, to improve binary
+    # compatibility. See http://code.google.com/p/webm/issues/detail?id=166
+    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