From nobody Tue Jun 9 11:09:53 2026 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gZR5N41Xzz6hmxP for ; Tue, 09 Jun 2026 11:10:00 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZR5N18lxz3Zbj; Tue, 09 Jun 2026 11:10:00 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781003400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V3okpWEDf82gBB35SBewDaH2o0fsb2uUvsZZzsLZ/9Q=; b=kxxNDC/noK1Tmo8koNd9pTeoQCIZOHfWH6pA2QkwQKdTig4EhJj8MCa6coLbmgLJR7T0Vd Iwmx9YWcgJBEwtnEWoUJdKZ8F5xMYugPwrCq4Eaqz2OxGPR80EUGjCmSMOyQL23fbTI5Fu XLJAAR/oOiOHST9cE9jZATljt/fdb7sNmgqn1rMeIxYVxF62EvBtxr9OHLclZ0gSqMwDUL ubmJQP5HbSjOavo2sDpMwo1wa/jZayENon2QOmSCTBogk7JMMlrd0p6512FyWq8BDkXbPQ BjOxDCEWh4OPBXrAvog/ourojLwlFSDpgdbn3tJvCRshwKEWUCttafybjQAOZg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781003400; a=rsa-sha256; cv=none; b=NQgA7yXmwvdtNFrNZWw9570Cn0tH31MLl1jIZZAcAy66Dhbjt8SIjgMHlBujx+c45t4FSQ R7q8CcsfRNTZ/ocF1FnOzChvWnn/3eS96JJV9p9AkHm9VvFlCpnAof2Ec/b2trV/1BoLFM YOSuZ9adieSUYYEIydZPSB7BvXvDxEvNkgXIZFuJdRSIu0qJOPKSHGDxd7dNqZ93fFC86h pHwQfGgzuIwN+XYUBw/od0LD0j2LF/oaRG+QMAMWHPsr5GoR+FiyPJ/Wmou4knjCOQFFW2 tHIh4wD1tNsQo7NWcFxEVQo3P9zqnjM7g/EV+ZNjsMvGtcnszvWT6FCUmXI6Jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781003400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V3okpWEDf82gBB35SBewDaH2o0fsb2uUvsZZzsLZ/9Q=; b=so8Ka7mL9kXxioDJ3vYtyeJk1yYWvC9VzL8l28+3kNXdF1QKhOXM5FrVok99UJggKsFP/V Fok5sbCK0Xp/+v1KwDh3bnBXa/vPP21FwSzBbAa5wISin/LScmKzURFsCEgeY7owyL+dmB 9X5xIxv19Rz8judbFDTVaTqgCtgre3+S94pO1JrVGZp4Jos4HUSlAWala+lxhlwoH2e3DA 8wby1mVrs6jqOBT1zSgP+6X//YNeUUqhNPuIVvSNXxL++VYFkStxJFVymhGuz3OhfmLKXg rj5YgfFGQzi8wbH5zcvyU8y4qTSe2sVqqHyR1PnJ0u50hgJWGgrhJ4/7+a7eVw== Received: from ltc.des.dev (unknown [92.183.12.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gZR5M6kd7zHS2; Tue, 09 Jun 2026 11:09:59 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id DF1F4AF1E2; Tue, 09 Jun 2026 13:09:53 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Jan Stary Cc: freebsd-questions@freebsd.org Subject: Re: example COPTFLAGS In-Reply-To: (Jan Stary's message of "Tue, 9 Jun 2026 12:21:21 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 09 Jun 2026 13:09:53 +0200 Message-ID: <865x3sq8am.fsf@ltc.des.dev> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jan Stary 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 d= oing > # so can cause problems. > # > #COPTFLAGS=3D -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 --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org