From 5e7a8dc75ef2d23f0afc7c7024fe1131f6ec5353 Mon Sep 17 00:00:00 2001 From: Jeremy Lal Date: Sun, 27 Sep 2009 10:45:52 +0200 Subject: [PATCH] Fixes for libeio wscript on Debian. - Link libeio to pthread. - Add -D_GNU_SOURCE to libeio wscript. --- deps/libeio/wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 5023d96a7d..b4d89aa4c1 100644 --- a/deps/libeio/wscript +++ b/deps/libeio/wscript @@ -8,7 +8,9 @@ def configure(conf): print "--- libeio ---" #conf.check_tool('compiler_cc') + conf.check(lib='pthread', uselib_store='PTHREAD') conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_create", mandatory=True) + conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork", mandatory=True) conf.check_cc(msg="Checking for futimes(2)", define_name="HAVE_FUTIMES", fragment=""" #include @@ -90,6 +92,7 @@ def configure(conf): } """) + conf.env.append_value("CCFLAGS", "-D_GNU_SOURCE") conf.check_cc(msg="Checking for sync_file_range(2) ", fragment=""" #include int main(void) @@ -110,6 +113,7 @@ def build(bld): libeio.target = 'eio' libeio.name = 'eio' libeio.includes = '. ../..' + libeio.uselib = "PTHREAD" libeio.install_path = None if bld.env["USE_DEBUG"]: libeio.clone("debug");