Date: Tue, 09 Jun 2026 13:09:53 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Jan Stary <hans@stare.cz> Cc: freebsd-questions@freebsd.org Subject: Re: example COPTFLAGS Message-ID: <865x3sq8am.fsf@ltc.des.dev> In-Reply-To: <aifpIeueRhpNesTY@www.stare.cz> (Jan Stary's message of "Tue, 9 Jun 2026 12:21:21 %2B0200") References: <aifpIeueRhpNesTY@www.stare.cz>
index | next in thread | previous in thread | raw e-mail
Jan Stary <hans@stare.cz> writes: > This is wht the exampla make.conf says about COPTFLAGS > on my freshly installed 15.0-RELEASE: > > # To compile just the kernel with special optimizations, you should use > # this instead of CFLAGS (which is not applicable to kernel builds anyway). > # There is very little to gain by using higher optimization levels, and doing > # so can cause problems. > # > #COPTFLAGS= -O -pipe > > But leaving everything at default apparently uses -O2 -pipe > for the kernel build? Is the comment out of date then? The example is outdated. COPTFLAGS is used for the kernel. Everything else, including kernel modules, uses CFLAGS. DES -- Dag-Erling Smørgrav - des@FreeBSD.orghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?865x3sq8am.fsf>
