Date: Thu, 12 Nov 2015 18:41:37 -0500 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: Support for out-of-tree build On Thu, Nov 12, 2015 at 10:35:07PM +0000, Petr Hosek wrote: > > > > What if we put the *.o files for arch asm in the arch dirs rather than > > in the main src dirs. Is there some clean way we could write a rule to > > remove the base .o files from OBJS when the arch-specific .o files are > > there? > > That's what I had in mind and I've already implemented it, but I couldn't > get the *.sub files to work in that setup. However, if we replace them with > Makefile fragments as you suggested it might it might solve that problem. > Let me try that out and I'll let you know whether this is a way to go. I don't see why the same wouldn't work for .sub files: their .o files could be put in their own dirs. But I'd rather get rid of them still and just have the arch provide an ordered list, for the specific subarch, of arch and subarch .s or .c files that should replace the .c files "above" them in the tree. Do you have good ideas for how to do this? Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.