[quake3-bugzilla] [Bug 4155] New: TOOLS_CFLAGS can't be customised

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sun Jun 28 11:42:34 EDT 2009


http://bugzilla.icculus.org/show_bug.cgi?id=4155

           Summary: TOOLS_CFLAGS can't be customised
           Product: ioquake3
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: bugzilla at benmachine.co.uk
         QAContact: quake3-bugzilla at icculus.org


Created an attachment (id=2084)
 --> (http://bugzilla.icculus.org/attachment.cgi?id=2084)
+= instead of =

In order to make ccache work with ioq3/Tremulous, I needed to set cflags for
all compiles, so I made a Makefile.local to fiddle with CFLAGS and
TOOLS_CFLAGS. The CFLAGS worked fine, they were added to the beginning of the
options without problem, but the TOOLS_CFLAGS that I set in the environment or
Makefile.local were discarded. I have to override the variable entirely if I
want to make changes.

The following patch makes no change unless TOOLS_CFLAGS is defined in the
environment or by Makefile.local, in which case it appends the default set to
the variable instead of replacing it with them. As an aside, I believe this may
fix the addition of -DMACOS_X to the tools compilation, which previously was
done earlier in the Makefile and hence overriden (this is not a real bug since
the define is not used in any functionally-critical way in the tools).

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list