FreeBSD Porter's Handbook
Prev | Chapter 12 Dos and Don'ts | Next

# 12.17 Usage of `sysctl`

The usage of `sysctl` is discouraged except in targets. This is because the evaluation of any `makevar`s, such as used during `make index`, then has to run the command, further slowing down that process.

Usage of sysctl(8) should always be done with the `SYSCTL` variable, as it contains the fully qualified path and can be overridden, if one has such a special need.

Prev | Home | Next
Avoid Use of the `.error` Construct | Up | Rerolling Distfiles

For questions about the FreeBSD ports system, e-mail <ports@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.