pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/openssl Ensure that -lcrypt appears before -l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2385458f2e0
branches:  trunk
changeset: 467370:e2385458f2e0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jan 30 10:59:14 2004 +0000

description:
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.

diffstat:

 security/openssl/buildlink3.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 7743ea90d01c -r e2385458f2e0 security/openssl/buildlink3.mk
--- a/security/openssl/buildlink3.mk    Fri Jan 30 10:56:11 2004 +0000
+++ b/security/openssl/buildlink3.mk    Fri Jan 30 10:59:14 2004 +0000
@@ -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 @@
 .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
 



Home | Main Index | Thread Index | Old Index