packages/utils/gpsd/patches/0002-ncurses6_detection.patch
zhengmz 88c3ff214b
gpsd: merge upstream (#436)
Co-authored-by: zhengmz <zhengmz@flowsea.com>
2022-05-07 20:33:18 +08:00

12 lines
511 B
Diff

--- a/SConscript
+++ b/SConscript
@@ -1038,6 +1038,8 @@ if not cleaning and not helping:
ncurseslibs += pkg_config('tinfo', rpath_hack=True)
# It's not yet known whether rpath_hack is appropriate for
# ncurses5-config.
+ elif WhereIs('ncursesw6-config'):
+ ncurseslibs = ['!ncursesw6-config --libs --cflags']
elif WhereIs('ncurses5-config'):
ncurseslibs = ['!ncurses5-config --libs --cflags']
elif WhereIs('ncursesw5-config'):