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