LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-07-2006, 11:52 AM   #1
bLUEbYTE84
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11
Posts: 4

Rep: Reputation: 0
Default system-wide GCC options


Hi,
When I build a program from the source with usual ./configure & make route, the gcc passes the -g option when compiling, which results in bloated binaries. I check Makefile after ./configure, but there is no -g in CFLAGS and like, so it seems it is like a 'system default'. How can I change it so that no -g is passed by default?
 
Old 10-07-2006, 12:40 PM   #2
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
gcc --help

Options starting with -g, -f, -m, -O, -W, or --param are automatically
passed on to the various sub-processes invoked by gcc. In order to pass
other options on to these processes the -W<letter> options must be used.
Quote:
-g Generate debug information in default format
Are you really sure you want to get rid of the -g as a default option?
 
Old 10-07-2006, 12:45 PM   #3
bLUEbYTE84
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, as I stated above it severely enlarges the output executables. I am almost certain that it is becuase of the -g parameter. It leaves the symbols that are helpful in debugging inside the executable.
As an example, it doubles the size in the case of FCEUltra (a Nintendo emulator)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice Writer: Default margins too wide apachedude Linux - Software 3 11-28-2006 10:20 AM
System wide KHTML colors ProtoformX Linux - Software 1 04-02-2005 10:13 AM
System Wide Permission lmanwarren Linux - General 1 03-29-2005 08:15 PM
Setting ISO8859-15 as the system-wide default ; how? Megamieuwsel Linux - General 1 08-25-2004 02:52 PM
*system-wide* KDE install, how? webvandals Linux - Software 5 03-05-2004 11:48 PM


All times are GMT -5. The time now is 11:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration