[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

Compile question.

I have installed pgcc and like to recompile almost all my programs using best optimizing. Do I have to change in all makefiles to use -06 -mpentium flaggs. Or can I tell my compiler to use those flags always?

When I run ./confugure I get:
checking whether the C compiler (gcc -g -O2 ) works... yes  
Is there any config files that I can change ?  
0
pucko
Asked:
pucko
1 Solution
 
ahoffmannCommented:
> Is there any config files that I can change ?
do mean a config file for building gcc, or for running gcc?

For building gcc you can specify a huge amount of options with ./configure (just read this script).
What you gcc uses as runtime default option can be checked with

   gcc -v

If it does not fit your requirements, either recompile gcc, or use a makefile to define default options, or set your environment variable CCFLAGS to whatever you like.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Tackle projects and never again get stuck behind a technical roadblock.
Join Now