Ensure that -lcrypt appears before -lcrypto on the command line so that

the system crypt(), which is considerably smarter than the OpenSSL crypt(),
is used.
This commit is contained in:
jlam 2004-01-30 10:59:14 +00:00
parent e2c107a7e9
commit 22aa620838

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.7 2004/01/24 03:12:32 jlam Exp $
# $NetBSD: buildlink3.mk,v 1.8 2004/01/30 10:59:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
OPENSSL_BUILDLINK3_MK:= ${OPENSSL_BUILDLINK3_MK}+
@ -150,6 +150,12 @@ BUILDLINK_DEPENDS+= rsaref
.endif
.if !empty(OPENSSL_BUILDLINK3_MK:M+)
#
# Ensure that -lcrypt comes before -lcrypto when linking so that the
# system crypt() routine is used.
#
BUILDLINK_TRANSFORM+= reorder:l:crypt:crypto
SSLBASE= ${BUILDLINK_PREFIX.openssl}
BUILD_DEFS+= SSLBASE