Boost logo

Boost-Build :

From: wayne_at_[hidden]
Date: 2022-04-22 17:33:11


Try running otool in terminal with the v and f options, like this…

otool -vf path-to-lib

Check man page on otool for more options.

Wayne Anderson

> On Apr 22, 2022, at 7:27 AM, Ian Emmons via Boost-build <boost-build_at_[hidden]> wrote:
>
> I am trying to build Boost 1.79.0 shared libraries on an x86-based Mac running the latest MacOS (Monterey, 12.3.1) using the latest Xcode (13.3.1, with Apple’s clang 13.1.6). Everything works great for building shared libraries that run on an x86-based Mac.
>
> My ideal would be to build a single set of universal (a.k.a. “fat”) binaries that include both x86 and ARM code, but Boost.Build does not seem to contain an option to do that. (Such options existed in the past for Intel/PowerPC combinations and then later for 64-bit/32-bit Intel combinations.)
>
> Second best is to build two sets of binaries, one for x86 and another for ARM. I tried to do this using the option architecture=x86,arm on the b2 command line, and it does in fact build two sets of binaries with the expected file names. For instance, for filesystem it builds these two:
>
> libboost_filesystem-clang-darwin13-mt-a64-1_79.dylib
> libboost_filesystem-clang-darwin13-mt-x64-1_79.dylib
>
> But when I use the “file” command to inspect the types of these files, they both are reported as "Mach-O 64-bit dynamically linked shared library x86_64”.
>
> Am I doing something wrong, here? Or is there a bug in Boost.Build regarding cross-compiling?
>
> Thanks,
>
> Ian
> _______________________________________________
> Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk