HomeFreeBSD

libproc: link against libctf if MK_CTF != no instead of MK_CDDL != no

Description

libproc: link against libctf if MK_CTF != no instead of MK_CDDL != no

Logic prior to this change would incorrectly try linking when MK_CDDL != no,
instead of MK_CTF != no, which could result in the library and the tests being
broken if/when MK_CTF == no and MK_CDDL != no (an uncommon, but possible
combination with today's build knobs).

This change updates the conditional to correctly track the value of MK_CTF, which
in turn is properly toggled to no if/when MK_CDDL == no as it's a dependent build
knob.

This [niche] build bug has been present in FreeBSD since 2014.

MFC after: 1 week

Details

Provenance
ngieAuthored on Jul 16 2026, 9:48 PM
Parents
rG605e699cd6ca: ena: Update driver version to v2.8.4
Branches
Unknown
Tags
Unknown