From 7221107c117781b0aaa61366c7fdd6c464456901 Mon Sep 17 00:00:00 2001 From: chrox Date: Mon, 19 Jan 2015 21:28:39 +0800 Subject: [PATCH] disable eventfd to make libzmq working on GLIBC_2.4 --- Makefile | 1 + Makefile.defs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8d584c941..2a7bfc858 100644 --- a/Makefile +++ b/Makefile @@ -430,6 +430,7 @@ $(ZMQ_LIB): LDFLAGS="$(LDFLAGS)" \ libzmq_have_xmlto=no libzmq_have_asciidoc=no \ ../configure -q --prefix=$(CURDIR)/$(ZMQ_DIR)/build \ + $(if $(POCKETBOOK),--disable-eventfd,) \ --disable-static --enable-shared \ --host=$(CHOST) -$(MAKE) -j$(PROCESSORS) -C $(ZMQ_DIR)/build --silent uninstall diff --git a/Makefile.defs b/Makefile.defs index da8b6ea66..e8e15f945 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -114,6 +114,8 @@ BASE_CFLAGS:=-O2 -ffast-math -pipe -fomit-frame-pointer ## no-use-cxa-atexit is to get rid of cxa_atexit # # FIXME: If we cared, we'd probably need to do something to convince libzmq not to enable support for eventfd [@GLIBC_2.7] +# FIXED: To cross compile libzmq for GLIBC_2.4 you need to configure with the option '--disable-eventfd' +# MG2K12_COMPAT_CFLAGS:=-fno-stack-protector -U_FORTIFY_SOURCE -D_GNU_SOURCE -fno-finite-math-only MG2K12_COMPAT_CXXFLAGS:=-fno-use-cxa-atexit