]> granicus.if.org Git - libvpx/commitdiff
Disable FORTIFY_SOURCE on glibc targets
authorJohn Koleszar <jkoleszar@google.com>
Fri, 29 Jul 2011 18:23:32 +0000 (14:23 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Mon, 1 Aug 2011 14:10:43 +0000 (10:10 -0400)
Improve binary distributions by defeating longjmp interception. See
http://code.google.com/p/webm/issues/detail?id=166 for more information.

Change-Id: I5ac731ec3f3570088597201d0f411473e2dffa4f

build/make/configure.sh

index eead3b5638f80d8147f4609839f7d9c94bfff544..ab087f1720c7df787761bdf565fd393a08eedcc6 100755 (executable)
@@ -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 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