Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libressl: fix build on macOS < 10.14 #21539

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion security/libressl/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
PortSystem 1.0
PortGroup muniversal 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup legacysupport 1.1

# error: 'TARGET_OS_OSX' is not defined
legacysupport.newest_darwin_requires_legacy 14

name libressl
version 3.8.2
Expand Down Expand Up @@ -38,7 +42,11 @@ post-patch {
reinplace "s|@OPENSSLDIR@|${prefix}/etc/ssl|" ${worksrcpath}/include/openssl/opensslconf.h
}

compiler.blacklist {clang < 100}
# aesni-macosx-x86_64.S:890:2: error: invalid
# instruction mnemonic 'endbr64'
# uses newer assembly features on Intel
compiler.blacklist-append \
{clang < 1001}

# HOST_ASM_MACOSX_X86_64 gets set when building i386 on x86_64
set merger_configure_args(i386) --disable-asm
Expand Down