[Bug 283131] security/heimdal: fix with stock clang >= 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 04 Dec 2024 18:49:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283131

            Bug ID: 283131
           Summary: security/heimdal: fix with stock clang >= 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: hrs@FreeBSD.org
             Flags: maintainer-feedback?(hrs@FreeBSD.org)

Upstream clang >= 16 made -Wimplicit-function-declaration into an error
by default. In the base system, this change was reverted to reduce the
fallout in ports, because there are many problematic configure scripts.

For security/heimdal this also applies, so for building the port with
devel/llvm16 or higher we need to add -Wno-implicit-function-declaration
to CFLAGS.

While here, use LDFLAGS+= for -Wl,--undefined-version, to avoid
overwriting any user-specified LDFLAGS.

-- 
You are receiving this mail because:
You are the assignee for the bug.