Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 685456 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-19 / +1 lines)
Line  Link Here
++ a/wscript   2019-06-22 12:47:02.288170100 -0700
Lines 305-316 Link Here
305
    ctx.check_cc(lib="m", comment="Math library")
305
    ctx.check_cc(lib="m", comment="Math library")
306
    ctx.check_cc(lib="rt", mandatory=False, comment="realtime library")
306
    ctx.check_cc(lib="rt", mandatory=False, comment="realtime library")
307
    ctx.check_cc(lib="pthread", mandatory=False, comment="threads library")
307
    ctx.check_cc(lib="pthread", mandatory=False, comment="threads library")
308
    ctx.check_cc(lib="execinfo", mandatory=False,
309
                 comment="BSD backtrace library")
310
    ret = ctx.check_cc(lib="bsd", mandatory=False,
311
                       comment="BSD compatibility library")
312
    if ret:
313
        ctx.env.LDFLAGS += ["-lbsd"]
314
    # -lssp and -lssp_nonshared may be needed by older gcc to
308
    # -lssp and -lssp_nonshared may be needed by older gcc to
315
    # support "-fstack-protector-all"
309
    # support "-fstack-protector-all"
Lines 682-700 Link Here
682
                       prerequisites=ft[1], use=ft[2],
676
                       prerequisites=ft[1], use=ft[2],
683
                       mandatory=ft[3])
677
                       mandatory=ft[3])
684
    # check for BSD versions outside of libc
685
    if not ctx.get_define("HAVE_STRLCAT"):
686
        ret = probe_function(ctx, function='strlcat',
687
                             prerequisites=['bsd/string.h'])
688
        if ret:
689
            ctx.define("HAVE_STRLCAT", 1, comment="Using bsd/strlcat")
690
691
    if not ctx.get_define("HAVE_STRLCPY"):
692
        ret = probe_function(ctx, function='strlcpy',
693
                             prerequisites=['bsd/string.h'])
694
        if ret:
695
            ctx.define("HAVE_STRLCPY", 1, comment="Using bsd/strlcpy")
696
697
    # Nobody uses the symbol, but this seems like a good sanity check.
678
    # Nobody uses the symbol, but this seems like a good sanity check.
698
    ctx.check_cc(header_name="stdbool.h", mandatory=True,
679
    ctx.check_cc(header_name="stdbool.h", mandatory=True,
699
                 comment="Sanity check.")
680
                 comment="Sanity check.")

Return to bug 685456