Index | Thread | Search

From:
Bryan Steele <brynet@openbsd.org>
Subject:
Re: PATCH: hardened build options for mozilla projects
To:
ports@openbsd.org
Cc:
info@minifree.org
Date:
Fri, 4 Sep 2026 07:40:55 -0400

Download raw body.

Thread
Leah wrote:
> +# hardened flags for the build
> +HARDFLAGS = -ftrivial-auto-var-init=zero -fwrapv -Wno-backend-plugin

-fwrapv at least is already the default on OpenBSD, for all compilers.

https://man.openbsd.org/clang-local

>  --enable-hardening

Not speaking for landry, but..

What does that mean? Which flags exactly does it change, and why do we
want them?

-Bryan.