This is the mail archive of the
automake-prs@sources.redhat.com
mailing list for the automake project.
automake/421: automake should offer a way to pass additional CFLAGS after $(CFLAGS)
- From: roland dot illig at gmx dot de
- To: automake-gnats at sources dot redhat dot com
- Date: 3 May 2004 17:28:02 -0000
- Subject: automake/421: automake should offer a way to pass additional CFLAGS after $(CFLAGS)
- Reply-to: roland dot illig at gmx dot de
>Number: 421
>Category: automake
>Synopsis: automake should offer a way to pass additional CFLAGS after $(CFLAGS)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon May 03 17:31:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: roland.illig@gmx.de
>Release: automake-1.8
>Organization:
>Environment:
>Description:
I have a package where I 'optimized' the CFLAGS for GCC. I switched on everything I could. But for one program, I would like to negate one option, namely '-Wno-redundant-decl'. I tried this:
getenv_CFLAGS= -Wno-redundant-decl
But the CFLAGS were prepended instead of appended. I did not find a way to append the getenv_CFLAGS to CFLAGS.
Assuming people know about the difference between CPPFLAGS, CFLAGS and CXXFLAGS, it seems more sensible to me to _ap_pend the program specific flags for CFLAGS and CXXFLAGS, and to continue to _pre_pend them for CPPFLAGS.
Well, most likely people don't know the difference ...
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: