Re: [cc65] Building with custom CC and CFLAGS

From: Greg King <>
Date: 2009-09-28 14:17:07
From: "Per Olofsson"; on Monday, Sept. 28, 2009; at 03:11 AM -0400
> On Mon, Sep 28, 2009 at 8:57 AM, Per Olofsson wrote:
> > A little more testing revealed that the current scheme of CFLAGS= and
> > CFLAGS+= in the makefiles doesn't quite work, as the += is *also*
> > overridden. Fortunately there's a fairly simple fix:
> OK, scratch "fairly simple"!  CC override is in effect when compiling
> libsrc, as well; so, cc65 isn't called.
> This is a fscking mess.

Heh.  You just will have to settle for two commands (I prefer to combine
"make" commands; but, "we do what we must"):

make -f make/gcc.mak bins docs CC=clang CFLAGS=-O4
make -f make/gcc.mak libs

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 28 14:18:23 2009

This archive was generated by hypermail 2.1.8 : 2009-09-28 14:18:25 CEST