On Sun, Oct 09, 2011 at 09:18:25AM +0800, Dehao Chen wrote: > Unfortunately -frecord-gcc-switches cannot serve our purpose because > the recorded switches are mergable, i.e. the linker will merge all > options to a set of strings. However, object files may have distinct > compile options. We want to preserve every object file's compile > options when doing LIPO build.
And -grecord-gcc-switches? That one, although it is mergeable, still preserves every object files's compile options. Jakub