Subject: Re: Adding to compilation flags during /usr/src/build.sh
To: Ingolf Steinbach <Ingolf.Steinbach@jena-optronik.de>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: netbsd-help
Date: 03/24/2004 10:17:00
--Signature=_Wed__24_Mar_2004_10_17_00_+0100_mt=a8rEHxyEdeLA=
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Wed, 24 Mar 2004 10:09:25 +0100
Ingolf Steinbach <Ingolf.Steinbach@jena-optronik.de> wrote:

> Hi,
> 
> what is the correct way to *add* certain compiler flags (e.g.
> -pipe) for *all* compiler invocations during /usr/src/build.sh
> on NetBSD 1.6.2 without replacing the default settings? (Note:
> I'd prefer not having to repeat the default settings explicitly
> as they might change while I'd like to keep -pipe...)
> 
> I have searched the mailing list archives and found different
> ways (CFLAGS vs COPTS for instance) which all seem to have
> some drawbacks. /usr/src/BUILDING does not give any hints.

There are two options (AFAIK):

	o Use build.sh's -V flag with COPTS, e.g:
	
	$ ./build.sh -V COPTS="-pipe blah blah"

	o Use COPTS+= in /etc/mk.conf.

-- 
	Juan RP <juan@xtraeme.unixbsd.org>

--Signature=_Wed__24_Mar_2004_10_17_00_+0100_mt=a8rEHxyEdeLA=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAYVIMypkLYVDran0RAqR4AJ9K1Zo3x+4UZ/OUSux6OXhYPkJ/qwCcDCdC
MV5EdXGt6C7aEBbk/u2DMK4=
=E8kF
-----END PGP SIGNATURE-----

--Signature=_Wed__24_Mar_2004_10_17_00_+0100_mt=a8rEHxyEdeLA=--