summaryrefslogtreecommitdiffstats
path: root/patches/gpsd-3.21/0004-SConstruct-don-t-use-lnsl.patch
blob: e857f8faa5d999f183b58680a43c6a17754b12b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Fri, 13 Nov 2020 11:55:47 +0100
Subject: [PATCH] SConstruct: don't use -lnsl

It may be found on Linux but is not actually needed.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 SConstruct | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/SConstruct b/SConstruct
index d303c3aa6d20..ce627e93f65e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1113,13 +1113,7 @@ else:
     else:
         confdefs.append("/* #undef HAVE_LIBRT */\n")
 
-    # for slowlaris socket(), bind(), etc.
-    if config.CheckLib('libnsl'):
-        confdefs.append("#define HAVE_LIBNSL\n")
-        # System library - no special flags
-        rtlibs += ["-lnsl"]
-    else:
-        confdefs.append("/* #undef HAVE_LIBNSL */\n")
+    confdefs.append("/* #undef HAVE_LIBNSL */\n")
 
     # for slowlaris socket(), bind(), etc.
     if config.CheckLib('libsocket'):