On Oct 23, 2015, at 10:24 AM, Bernd Schmidt <bschm...@redhat.com> wrote: > On 10/23/2015 07:15 PM, Mike Stump wrote: >> On Oct 23, 2015, at 9:57 AM, Bernd Schmidt <bschm...@redhat.com> >> wrote: >>> >>> I'm guessing it's the CROSS_DIRECTORY_STRUCTURE macro which is used >>> by darwin targets. It's also used for several other targets, so you >>> may want to double check those. >> >> No, only darwin is special, as presently only darwin has the >> requisite support in the object file format to do what needs doing. > > Not sure what you mean by "what needs doing", but grep shows a number of uses > of CROSS_DIRECTORY_STRUCTURE. Anything that uses it would presumably cause a > difference between a cross and host build which could lead to an issue like > the one Iain found.
What needs doing, means the ability to pack two different architectures into one file. If you look at all the uses, you discover two things. All non-darwin ports use it in trivial ways. Only darwin uses it (doesn’t use it), in non-trivial ways that may impact headers. For the non-darwin targets, the use of it is universal, not related to any target. So, testing any cross (the condition under which things are different) and any non-cross will test most things. It is this notion of several other targets in your email that just doesn’t apply. Any target which is a cross, is the wording that would apply.