Subject: Re: custom system build experience.
To: Leo Ngatia <email@example.com>
From: Frederick Bruckman <firstname.lastname@example.org>
Date: 10/20/2003 18:35:04
On Mon, 20 Oct 2003, Leo Ngatia wrote:
> I already have CFLAGS+=-mcpu=....
> int /etc/mk.conf, but they are not being added to the xsrc compile.
> On October 20, 2003 03:47 pm, you wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > /etc/mk.conf
> > COPTS+= -march=i686
> > or simular. Is this what you want?
The imake generated makefiles don't know about COPTS...
> > On Monday 20 October 2003 01:44 pm, you wrote:
> > > How do you set optimize flags for X sources? I tried adding them to
> > > NetBSD.cf in the config directry as documented, but it just wouldn't
> > > work, yet the compile kept echoing flags from the same file (NBSD_THREADS
> > > in particular). Is there a different file?
There's a list of things to set in "host.def" in the README file in
the same directory, in particular DefaultCCOptions. Nobody actually
I expect when lukem is finished with the src/x11 stuff, you'll be able
to do that the ordinary way, with COPTS or CPUFLAGS. In the meantime,
make build CCOPTIONS='-foo' -CXXOPTIONS='-foo'
works for me. CCOPTIONS (== DefaultCCOptions) is empty on all but a
few NetBSD ports, and I doubt that the options that are set on the
others are still needed to build. You need to override on the command
line (or add it to MAKEFLAGS in the environment), because it is set
unconditionally in the makefiles, even if to empty.