HomeFreeBSD

security/heimdal: fix with stock clang >= 16

Description

security/heimdal: fix with stock clang >= 16

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.

PR: 283131
Approved by: maintainer timeout (2 weeks)
MFH: 2025Q1

(cherry picked from commit 4d5d01f42f436a1834773cc616fb7a693acfbc74)

Details

Provenance
dimAuthored on Dec 4 2024, 6:49 PM
Parents
R11:505ae9a310b9: lang/clover: remove llvm:max=16 restriction, part 2
Branches
Unknown
Tags
Unknown