> On 29 May 2015, at 19:13, Rich Felker wrote: > > On Fri, May 29, 2015 at 07:11:18PM +0200, Shiz wrote: > > What if you add a bogus prefix to all -l and -L options provided by > the user? Then the wrapper can remove any -l or -L options without the > prefix, then remove the prefix from the ones that remain. > > Rich This isn’t a bad idea, but it modifies the behaviour in the same way musl-clang does, except the other way around: it will not have clang invoke ld if only -l is supplied by the user and no object paths are, which is what normally should happen. I’m pretty sure I’ve devised a fix that doesn’t modify behaviour and makes ld.musl-clang a bit cleaner as a side-effect - I’ll post an updated patch after a bit of testing. -S