blob: d17d311bdbe0039cde4e3424c43e4b1e408b50ff [file] [log] [blame]
From 488dc9b00239976caac6bd9ed76b38d9d1659dd9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Tue, 4 Oct 2016 23:44:49 +0200
Subject: [PATCH] wscript: add pthread library dependency to fix linking
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Stolen from [1]
[1] http://pkgs.fedoraproject.org/cgit/rpms/a2jmidid.git/tree/a2jmidid-linking.patch
Upstream-Status: Pending
Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com>
---
wscript | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wscript b/wscript
index 664625b..66a532a 100644
--- a/wscript
+++ b/wscript
@@ -67,6 +67,7 @@ def configure(conf):
conf.env['DBUS_ENABLED'] = False
conf.env['LIB_DL'] = ['dl']
+ conf.env['LIB_PTHREAD'] = ['pthread']
#conf.check_header('expat.h', mandatory=True)
#conf.env['LIB_EXPAT'] = ['expat']
@@ -152,7 +153,7 @@ def build(bld):
prog.includes = '.' # make waf dependency tracking work
prog.target = 'a2jmidid'
- prog.uselib = 'ALSA JACK DL'
+ prog.uselib = 'ALSA JACK DL PTHREAD'
if bld.env()['DBUS_ENABLED']:
prog.uselib += " DBUS-1"
prog = bld.create_obj('cc', 'program')
--
2.5.5