summaryrefslogtreecommitdiff
blob: 66dc9d34d2ef8c9fdef55eac1ca5cfcc9d09afc6 (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
31
32
33
34
35
--- a/wscript   2019-05-25 07:41:24.783651700 -0700
+++ b/wscript   2019-06-22 12:47:02.288170100 -0700
@@ -305,12 +305,6 @@
     ctx.check_cc(lib="m", comment="Math library")
     ctx.check_cc(lib="rt", mandatory=False, comment="realtime library")
     ctx.check_cc(lib="pthread", mandatory=False, comment="threads library")
-    ctx.check_cc(lib="execinfo", mandatory=False,
-                 comment="BSD backtrace library")
-    ret = ctx.check_cc(lib="bsd", mandatory=False,
-                       comment="BSD compatibility library")
-    if ret:
-        ctx.env.LDFLAGS += ["-lbsd"]

     # -lssp and -lssp_nonshared may be needed by older gcc to
     # support "-fstack-protector-all"
@@ -682,19 +676,6 @@
                        prerequisites=ft[1], use=ft[2],
                        mandatory=ft[3])

-    # check for BSD versions outside of libc
-    if not ctx.get_define("HAVE_STRLCAT"):
-        ret = probe_function(ctx, function='strlcat',
-                             prerequisites=['bsd/string.h'])
-        if ret:
-            ctx.define("HAVE_STRLCAT", 1, comment="Using bsd/strlcat")
-
-    if not ctx.get_define("HAVE_STRLCPY"):
-        ret = probe_function(ctx, function='strlcpy',
-                             prerequisites=['bsd/string.h'])
-        if ret:
-            ctx.define("HAVE_STRLCPY", 1, comment="Using bsd/strlcpy")
-
     # Nobody uses the symbol, but this seems like a good sanity check.
     ctx.check_cc(header_name="stdbool.h", mandatory=True,
                  comment="Sanity check.")