LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-21-2010, 12:00 AM   #1
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Default CFLAGS in gcc when none are specified?


Hi,

I have kind of a weird question. All Slackbuilds use -march=i486 -mtune=i686 -O2 to pass to gcc for standard building. What does gcc use by default if none are specified. Say for instance I just did ./configure && make && make install without specifying -march.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-21-2010, 12:57 AM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Does this help ?
http://old.nabble.com/GCC-default-op...d28682743.html
 
2 members found this post helpful.
Old 10-21-2010, 01:08 AM   #3
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Very nice, I liked this a lot.
 
Old 10-21-2010, 01:14 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Well, thanks, I am happy I could help someone !
 
Old 10-21-2010, 01:28 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
thanks also from me, learned a new, very informative, thing
 
Old 10-21-2010, 01:41 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Welcome ponce, Wow, I am proving to be helpful here

This thread should have been placed in the programming section instead ! I could see it only through the zero reply thread page.

Last edited by Aquarius_Girl; 10-21-2010 at 01:42 AM.
 
Old 10-22-2010, 05:07 AM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved to Programming
 
Old 10-22-2010, 05:41 AM   #8
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Tangentially related:

gcc -print-search-dirs
gcc -dumpspecs
.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for kernel config and gcc optimization CFLAGS for Intel Atom N270 sparky.summer Linux - Kernel 3 11-23-2009 12:30 PM
why is gcc(and not g++) default compiler in debian? ciden Programming 7 06-03-2008 04:44 AM
GCC not installed by default in SUSE 10.1? *Xenny* SUSE / openSUSE 3 08-07-2006 09:02 AM
export CFLAGS GCC help TieN Programming 2 06-17-2005 03:24 AM
Default/Undefined CFLAGS? jong357 Slackware 6 03-11-2005 01:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration