I want to let my gcc always add some flags by default, is there a clean way to do this?
Basically I have some flags I pass every time I invoke gcc, for example (but not limited to) -g (so that it has debug information).
There are several workarounds but they are ugly:
alias g++=..., but I don't like this approach;- Write a script that wraps around the g++, similar to 1;
- ...
I would prefer just modifying the specs file so that everything is seamless.