This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc set default option OSX
- From: Haneef Mubarak <haneef503 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Apr 2014 23:00:50 -0700
- Subject: gcc set default option OSX
- Authentication-results: sourceware.org; auth=none
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