IainS <develo...@sandoe-acoustics.co.uk> writes: > yeah .. we use it in Darwin's dsymutil spec. > > %{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ > %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm: \ > %{gdwarf-2:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{! > o:a.out}}}}}}}}}}}}" > %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n" > > > if you put "-lm" on the c/l dsymutil doesn't get called.
Note that in the specs language the %{.XXX: ...} is matched against the filename passed to the gcc driver. It doesn't know the source language of a .o file. So if you are linking, and passing .o files, then this approach won't work. Ian