On 2019-2-14 20:37 , René J.V. Bertin wrote: > Hi, > > Is there a reliable way to build projects that use/produce static libraries > with +universal but without the muniversal PG? > > I've been tinkering with an upgrade for port:mesa, the current version uses > static libraries internally as intermediate build products, something I > noticed only when I got message saying that "archive is built for > architecture which is not the architecture being built for (XXX)". Funnily > enough I did manage to get the thing to build once but haven't been able to > reproduce that feat.
You can have static archives containing fat object files but some tools can't handle such archives. You also absolutely must have a table of contents in the archives for this to work (i.e. use the 's' option with ar or run ranlib afterwards.) - Josh
