You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/ntpsec/files/ntpsec-no-bsd.patch

36 lines
1.5 KiB

--- 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.")