Subject: Re: C compiler flags
To: NetBSD/pkgsrc-users <pkgsrc-users@NetBSD.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: pkgsrc-users
Date: 11/19/2006 20:21:55
Am 19.11.2006 um 19:53 schrieb Matthias Scheler:

>
> I'm sorry but that is wrong.
>
> 1.) Please do *not* modify "CFLAGS" in "/etc/mk.conf". You will cause
>     various build failures.
> 2.) Please do *not* try to enforce using "-O2". There are packages  
> which
>     build without optimization by purpose. It is default under  
> NetBSD for
>     all the packages where this optimization level is known to work

where/how are these defaults set?

>
> The correct setting is:
>
> COPTS=	-march=athlon

where is COPTS used with pkgsrc?

>
> Or you could use the "cpuflags" package.

which only works for Linux, NetBSD, and Solaris.


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
georg.schwarz@freenet.de  +49 178 8545053