summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-02-20 11:38:14 +0000
committerjperkin <jperkin>2014-02-20 11:38:14 +0000
commit23f86a994b3046553af3ada940cb6119a62cb06e (patch)
tree82219b5cf13cb7b415c364556ccb6a388553977f
parent7bbd95812877bf83a82ca692390ea62204d27730 (diff)
downloadpkgsrc-23f86a994b3046553af3ada940cb6119a62cb06e.tar.gz
Add -lcrypt on Linux.
-rw-r--r--security/crack/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/crack/Makefile b/security/crack/Makefile
index e4590df00e6..960a04bc215 100644
--- a/security/crack/Makefile
+++ b/security/crack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2012/10/23 18:16:22 asau Exp $
+# $NetBSD: Makefile,v 1.31 2014/02/20 11:38:14 jperkin Exp $
DISTNAME= crack5.0
PKGNAME= crack-5.0
@@ -21,6 +21,12 @@ REPLACE_FILES.xdawg= dict/*/*
CHECK_INTERPRETER_SKIP+= share/crack/extra/Dictstats.pl
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+MAKE_ENV+= LIBS="-lcrypt"
+.endif
+
pre-configure:
@if [ -f /usr/lib/libcrypt.a ]; then \
${ECHO} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile; \