Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | From 488dc9b00239976caac6bd9ed76b38d9d1659dd9 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> |
| 3 | Date: Tue, 4 Oct 2016 23:44:49 +0200 |
| 4 | Subject: [PATCH] wscript: add pthread library dependency to fix linking |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Stolen from [1] |
| 10 | |
| 11 | [1] http://pkgs.fedoraproject.org/cgit/rpms/a2jmidid.git/tree/a2jmidid-linking.patch |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | |
| 15 | Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com> |
| 16 | --- |
| 17 | wscript | 3 ++- |
| 18 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/wscript b/wscript |
| 21 | index 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 | -- |
| 42 | 2.5.5 |
| 43 | |