diff options
author | jperkin <jperkin@pkgsrc.org> | 2015-12-08 16:51:33 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2015-12-08 16:51:33 +0000 |
commit | de6c1f492fc3dd9da82df35fd216c95130e3923f (patch) | |
tree | 69bc2784db9844d64ee86fbb230c627d6dd01d02 /security | |
parent | 5a4eb4a4551c8422d338d4ee909bc56fbc85405c (diff) | |
download | pkgsrc-de6c1f492fc3dd9da82df35fd216c95130e3923f.tar.gz |
Work around an issue on platforms where CC=cc (set by default in sys.mk from
bootstrap-mk-files). OpenSSL specifically checks for CC=gcc before using it as
a makedepend replacement, whereas CC=cc will fall back to requiring a real
'makedepend' which may not be installed. Tested on Linux by kamil@
Diffstat (limited to 'security')
-rw-r--r-- | security/openssl/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile index d68e6a5965b..1b525170405 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.216 2015/12/07 15:57:42 jperkin Exp $ +# $NetBSD: Makefile,v 1.217 2015/12/08 16:51:33 jperkin Exp $ DISTNAME= openssl-1.0.2e CATEGORIES= security @@ -32,6 +32,12 @@ CONFIGURE_ARGS+= --install_prefix=${DESTDIR} CONFIGURE_ARGS+= --openssldir=${PKG_SYSCONFDIR} CONFIGURE_ARGS+= shared no-fips +# Avoid dependency on 'makedepend' on platforms where the default CC is set +# to 'cc' not 'gcc' in boostrap-mk-files. OpenSSL only supports the latter. +.if ${PKGSRC_COMPILER} == "gcc" +CONFIGURE_ENV+= CC=gcc +.endif + .if ${OPSYS} == "SunOS" . if ${MACHINE_ARCH} == "sparc" OPENSSL_MACHINE_ARCH= ${SPARC_TARGET_ARCH} |