Re: Replacing ar with libtool

2024-08-11 Thread Bob Friesenhahn
On Sat, 10 Aug 2024, Simon Richter wrote: Libtool supports "convenience libraries", which are unpacked and repacked automatically to merge all objects to a single large library. That takes a bit of extra time in a build and cannot be parallelized either, but in large projects it makes the Mak

Re: Replacing ar with libtool

2024-08-10 Thread Simon Richter
Hi, On 8/10/24 20:08, Navin P wrote: 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. Typically you'd generate all objects first, then archive them in a single invocation. This is I/O bound anyway, so you're not lo

Replacing ar with libtool

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