Gnu make option to fix parallel multiple ar on a shared archive

2024-08-10 Thread Navin P
Hi, I ran multiple instances of ar during a parallel build and they were updating different object files using ar rv sometimes the same object file again. When i run make -j1 i find all the object files libx.a but when i do make -j8 i find some missing object files inside libx.a. Then i looke

Re: Gnu make option to fix parallel multiple ar on a shared archive

2024-08-10 Thread Navin P
d > even if -j is requested on the command line or via the environment. > > Why it's broken is that you have multiple rules that update the same > object. > > An archive should be built by exactly one rule which has all the > prerequisites that are going into the archive. > >