Building "Fat" Mac Binary, or Cross-Compiling from ARM arch to x86-64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm running on a MacBook Pro with M1 chip (apple silicon) with MacOS Big
Sur 11.2.

I built my own clang/llvm v18.1.8 from source and it's setup to build
both ARM64 and x86-64.

The compiler successfully creates "fat" mac binaries which contain both
the arm64 and x64 binaries for other open source projects, as well as my
own code.  I accomplish this by passing "-arch x86_64 -arch arm64" to
the relevant compiler flags (CFLAGS for the open source projects).


I'm trying to do the same for OpenSSL v1.1.1w, but I get the following
error:

   crypto/arm_arch.h:55:6: error: "unsupported ARM architecture"


Even if I try to build OpenSSL only for x64 (by passing CFLAGS=-arch
x86_64), the OpenSSL compile sets both "-arch arm64 -arch x86_64".  Note
the order of these params is the opposite from what I pass, so tells me
something in the configuration script is setting these.

If I pass no params for CFLAGS, OpenSSL builds successfully, but for
only ARM64.


If this issue is already fixed in a newer version of OpenSSL I'm fine to
upgrade.


Thanks in advance!


Regards,

Nick


--
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe@xxxxxxxxxxx.
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/2d108009-936e-3dda-c65e-185c4e92be0d%40codesniffer.com.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux