blob: d17d311bdbe0039cde4e3424c43e4b1e408b50ff [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001From 488dc9b00239976caac6bd9ed76b38d9d1659dd9 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Tue, 4 Oct 2016 23:44:49 +0200
4Subject: [PATCH] wscript: add pthread library dependency to fix linking
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Stolen from [1]
10
11[1] http://pkgs.fedoraproject.org/cgit/rpms/a2jmidid.git/tree/a2jmidid-linking.patch
12
13Upstream-Status: Pending
14
15Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com>
16---
17 wscript | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
19
20diff --git a/wscript b/wscript
21index 664625b..66a532a 100644
22--- a/wscript
23+++ b/wscript
24@@ -67,6 +67,7 @@ def configure(conf):
25 conf.env['DBUS_ENABLED'] = False
26
27 conf.env['LIB_DL'] = ['dl']
28+ conf.env['LIB_PTHREAD'] = ['pthread']
29
30 #conf.check_header('expat.h', mandatory=True)
31 #conf.env['LIB_EXPAT'] = ['expat']
32@@ -152,7 +153,7 @@ def build(bld):
33
34 prog.includes = '.' # make waf dependency tracking work
35 prog.target = 'a2jmidid'
36- prog.uselib = 'ALSA JACK DL'
37+ prog.uselib = 'ALSA JACK DL PTHREAD'
38 if bld.env()['DBUS_ENABLED']:
39 prog.uselib += " DBUS-1"
40 prog = bld.create_obj('cc', 'program')
41--
422.5.5
43