gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] [PATCH] Restore building with minimal=True


From: Rob Norris
Subject: [gpsd-dev] [PATCH] Restore building with minimal=True
Date: Thu, 17 Mar 2016 20:52:41 +0000

ncurselibs needs to always be defined since it's used by definitions of gpsmon 
and cgps (even if they are not going to be built)

TESTED:
scons minimal=True && scons -c && rm -rf .scons* && scons build-all check
---
 SConstruct | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index d16e0ba..719d262 100644
--- a/SConstruct
+++ b/SConstruct
@@ -567,6 +567,7 @@ else:
     # base system or not. If it does, pkg-config is not likely to tell us
     # anything useful. FreeBSD does, Linux doesn't. Most likely other BSDs
     # are like FreeBSD.
+    ncurseslibs = []
     if env['ncurses']:
         if config.CheckPKG('ncurses'):
             ncurseslibs = pkg_config('ncurses', rpath_hack=True)
@@ -585,7 +586,6 @@ else:
         elif sys.platform.startswith('darwin'):
             ncurseslibs = ['-lcurses']
         else:
-            ncurseslibs = []
             announce('Turning off ncurses support, library not found.')
             env['ncurses'] = False
 
-- 
2.7.0




reply via email to

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