pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: C compiler flags




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@localhost  +49 178 8545053






Home | Main Index | Thread Index | Old Index