summaryrefslogtreecommitdiff
path: root/security/openssl
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2021-07-09 18:22:56 +0000
committerschmonz <schmonz@pkgsrc.org>2021-07-09 18:22:56 +0000
commit1eef82d19d8aacfe7228f804a30a8f9b21258edf (patch)
tree43c0d2fc01addb9d825edf2395a96a9e751aa40d /security/openssl
parent5b1f44a9ab112fa41439a02892e4673d9412ef0c (diff)
downloadpkgsrc-1eef82d19d8aacfe7228f804a30a8f9b21258edf.tar.gz
On Mac OS X Snow Leopard with ABI=64, configure was selecting a 32-bit
build (and then failing in the assembler). Override its choice on Darwin/x86_64 by specifying KERNEL_BITS=${ABI} in CONFIGURE_ENV.
Diffstat (limited to 'security/openssl')
-rw-r--r--security/openssl/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index 71680e571bc..af001ad1329 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.271 2021/05/24 19:53:55 wiz Exp $
+# $NetBSD: Makefile,v 1.272 2021/07/09 18:22:56 schmonz Exp $
# Remember to upload-distfiles when updating OpenSSL -- otherwise it
# is not possible for users who have bootstrapped without OpenSSL
@@ -33,6 +33,11 @@ CONFIGURE_ARGS+= shared
CONFIGURE_ARGS+= no-async
.endif
+# Fix 64-bit build on at least Mac OS X Snow Leopard
+.if ${OPSYS} == "Darwin" && ${MACHINE_ARCH} == "x86_64"
+CONFIGURE_ENV+= KERNEL_BITS=${ABI}
+.endif
+
.include "options.mk"
CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS}