UNIVERSAL_ARCHFLAGS
Joshua Root
jmr at macports.org
Mon Feb 10 05:25:01 UTC 2020
On 2020-2-10 09:44 , Mihir Luthra wrote:
> Hi,
>
> 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
> pextlib1.0.
>
> darwintracelib1.0 uses UNIVERSAL_ARCHFLAGS in its build and pextlib1.0
> doesn't.
>
> 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?
- Josh
More information about the macports-dev
mailing list