Subject: toolchain/35377: sys.mk should not assigned CXXFLAGS based on CFLAGS
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rillig@NetBSD.org>
List: netbsd-bugs
Date: 01/08/2007 05:25:02
>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:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 08 05:25:02 +0000 2007
>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: