jmr at macports.org
Mon Feb 10 05:25:01 UTC 2020
On 2020-2-10 09:44 , Mihir Luthra wrote:
> Creating a static library from fat object files works fine as long as
> there's an index. That means using the -s option with ar, or running
> ranlib after creation. The usual command is "ar crs <libname>.a *.o".
> I was making a static lib that can be used by both darwintracelib1.0 and
> darwintracelib1.0 uses UNIVERSAL_ARCHFLAGS in its build and pextlib1.0
> So, on Catalina, the build works as UNIVERSAL_ARCHFLAGS resolve to
> x86_64 only.
> But on 10.13, build fails as library is incompatible,
Why would a universal library be incompatible with building for a single
arch? What is the actual failing command?
More information about the macports-dev