From 163fa35fe3d49f0178b0173d662cf899989b7bcb Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 1 Sep 2010 16:56:25 -0700 Subject: [PATCH] Disable new longjmp in glibc 2.11 and later. Bug: 2967937 Change-Id: I7a5ef082502192f41c26a48632edfe775dea7648 --- core/combo/HOST_linux-x86.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/combo/HOST_linux-x86.mk b/core/combo/HOST_linux-x86.mk index 26052d6b2..fa2dfe31c 100644 --- a/core/combo/HOST_linux-x86.mk +++ b/core/combo/HOST_linux-x86.mk @@ -37,4 +37,7 @@ HOST_GLOBAL_CFLAGS += -fPIC HOST_GLOBAL_CFLAGS += \ -include $(call select-android-config-h,linux-x86) +# Disable new longjmp in glibc 2.11 and later. See bug 2967937. +HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0 + HOST_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined