diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-02-11 09:58:50 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-02-11 09:58:50 +0000 |
commit | f13367f2a3ef880ddb41fb32d17e663319d01bd3 (patch) | |
tree | ea1d0d529ea409a5d313ea61853be039e9679c15 /security | |
parent | d3825434af4fe586fe00b648bc17ec3b17b64bee (diff) | |
download | pkgsrc-f13367f2a3ef880ddb41fb32d17e663319d01bd3.tar.gz |
openssl: Handle i386 SunOS.
The OpenSSL config script isn't clever enough to detect multiarch platforms so
we need to manually specify the host OS.
Diffstat (limited to 'security')
-rw-r--r-- | security/openssl/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile index b47f8b93e48..dd810b28921 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.250 2020/01/18 21:48:23 jperkin Exp $ +# $NetBSD: Makefile,v 1.251 2020/02/11 09:58:50 jperkin Exp $ DISTNAME= openssl-1.1.1d PKGREVISION= 2 @@ -27,6 +27,17 @@ CONFIGURE_ARGS+= shared CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS} CONFIGURE_ENV+= PERL=${PERL5:Q} +# If the config script cannot guess the host system correctly then we need to +# specify it manually and call the Configure script directly. +OPENSSL_HOST.SunOS-i386= solaris-x86-gcc +OPENSSL_HOST.SunOS-x86_64= solaris64-x86-gcc + +.if defined(OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}) +CONFIG_SHELL= ${PERL5} +CONFIGURE_SCRIPT= ./Configure +CONFIGURE_ARGS+= ${OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}} +.endif + PKGCONFIG_OVERRIDE+= libcrypto.pc libssl.pc openssl.pc PKGCONFIG_OVERRIDE_STAGE= post-build |