Date: Mon, 19 Jul 1999 15:33:08 +0200 (CEST) From: Niteshadow To: Markus Osa cc: pgcc AT delorie DOT com Subject: Re: Defaulting the optimization flags in the compiler In-Reply-To: <37930589.92AF1BB1@sektori.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: pgcc AT delorie DOT com X-Mailing-List: pgcc AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 19 Jul 1999, Markus Osa wrote: > Hi, > > Is there a way to configure PGCC to every time use the same optimization > flags, when compiling, so that no Makefiles or such should be edited for > every program? How? > This might be more of a GCC related question, but as the problem came up > with PGCC, I'm asking it here. > I'm not a subscriber to the list, so please reply to my email-address. > > Markus Osa > Finland > The way i do this is export (or set, depends on your shell) these variables CFLAGS="-O6 -mpentiumpro -march=pentiumpro" CXXFLAGS="-O6 -mpentiumpro -march=pentiumpro" in my .startup script (.bash_profile, .cshrc). This works with most programs, which are configured using "configure". Still you may to check the results and possibly the Makefiles. - ------------------------------------------------------------------------------ - From : Robert 'Niteshadow' Varga email : niteshadow AT hq DOT alert DOT sk, varga AT ibl DOT sk PGPkey: http://hq.alert.sk/~niteshadow/pgpkey.txt phone : +421 903 511 985 (mobile, always), +421 863 432 49 75 (home, rarely) - ------------------------------------------------------------------------------ We are Linux. Resistance means you didn't get the point. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBN5MpFKz3GZ0qtIKKEQIUeACgoBJlmsEqr8GuOGSdredt43pOLRIAoKzB AAWjmP+S0FKgxclFrHLCcWNc =HbCF -----END PGP SIGNATURE-----