gcc set default option OSX

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

 



So on my OSX systems (Lion through Mavericks), the following option
needs to be passed to gcc or g++ in order to work correctly whenever
machine optimized code is enabled:


    -Wa,-q

I believe is because of the assembly syntax that the system assembler
uses by default or something like that, but that is just AFAIK, so I
may be wrong.

My question is: how can I tell gcc (and g++) to always use this option
when executing?

I thought about using the specs file, but I can't find it using
'strace gcc | grep specs' since there is no strace on OSX systems
(there's dtruss, but who the hell knows how to use that).

Even better, is there some way I could tell gcc this (or fix the
problem in any other way) when I compile gcc from sources?

Thanks,
Haneef Mubarak




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux