gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] [PATCH] add support for ncurses6 in SConstruct


From: Russell Senior
Subject: [gpsd-users] [PATCH] add support for ncurses6 in SConstruct
Date: Sat, 21 Jan 2017 08:25:18 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Build tested in lede-project.org, which has updated to ncurses6, which
broke gpsd builds.  This patch provides for detecting ncurses6.

Signed-off-by: Russell Senior <address@hidden>
---
 SConstruct | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/SConstruct b/SConstruct
index b6606f52..749fa26f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -672,6 +672,10 @@ else:
                 ncurseslibs += pkg_config('tinfo', rpath_hack=True)
         # It's not yet known whether rpath_hack is appropriate for
         # ncurses5-config.
+        elif WhereIs('ncurses6-config'):
+            ncurseslibs = ['!ncurses6-config --libs --cflags']
+        elif WhereIs('ncursesw6-config'):
+            ncurseslibs = ['!ncursesw6-config --libs --cflags']
         elif WhereIs('ncurses5-config'):
             ncurseslibs = ['!ncurses5-config --libs --cflags']
         elif WhereIs('ncursesw5-config'):
-- 
2.11.0


-- 
Russell Senior         ``I have nine fingers; you have ten.''
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]