NetBSD Problem Report #35377
From www@NetBSD.org Mon Jan 8 05:20:20 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id A97C563BB5C; Mon, 8 Jan 2007 05:20:20 +0000 (UTC)
Message-Id: <20070108052020.A97C563BB5C@narn.NetBSD.org>
Date: Mon, 8 Jan 2007 05:20:20 +0000 (UTC)
From: rillig@NetBSD.org
Reply-To: rillig@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: sys.mk should not assigned CXXFLAGS based on CFLAGS
X-Send-Pr-Version: www-1.0
>Number: 35377
>Category: toolchain
>Synopsis: sys.mk should not assigned CXXFLAGS based on CFLAGS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jan 08 05:25:02 +0000 2007
>Closed-Date: Mon Feb 07 22:52:16 +0000 2022
>Last-Modified: Mon Feb 07 22:52:16 +0000 2022
>Originator: Roland Illig
>Release: 3.0, but doesn't matter
>Organization:
>Environment:
>Description:
In sys.mk, the variable CXXFLAGS is based on CFLAGS, but with several options excluded. This already indicates that there might be something wrong with that approach. A much cleaner solution would be to define a variable containing the common flags and then add them to both CFLAGS and CXXFLAGS.
I noticed that when adding very strict checks to the pkgsrc wrapper to see which packages accept CFLAGS and CXXFLAGS from the user (mk.conf) and which don't.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Mon, 07 Feb 2022 22:52:16 +0000
State-Changed-Why:
Doesn't seem to bother anyone but me.
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.