This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc set default option OSX


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]