Skip to content

Add support for building Apple Silicon #12254

Closed
@MonkeybreadSoftware

Description

Hi,

you may have watched the Keynote that Apple moves to their own ARM CPUs.

We added this section to 10-main.conf in our copy:

"darwin64-arm64-cc" => {
    inherit_from     => [ "darwin-common", asm("aarch64_asm") ],
    CFLAGS           => add("-Wall"),
    cflags           => add("-arch arm64 -mmacosx-version-min=11.0 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"),
    lib_cppflags     => add("-DL_ENDIAN"),
    bn_ops           => "SIXTY_FOUR_BIT_LONG",
    perlasm_scheme   => "macosx",
},

and we configure with this line:

./Configure shared enable-rc5 zlib darwin64-arm64-cc no-asm

Builds here, although we have to use no-asm as using the assembler didn't build.
Maybe someone can verify this and add it to the next 1.1.x patch?

Metadata

Assignees

No one assigned

    Labels

    triaged: featureThe issue/pr requests/adds a feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions