summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-05 12:00:01 +0000
committerpeter <peter@FreeBSD.org>1997-09-05 12:00:01 +0000
commit9d5ac12664fb83bc03eb0b208025bd9db436ecf9 (patch)
tree0369bd16f6c30ec2f20ae68fdb8cff0274ca5e11 /usr.bin/login
parent09cd0a0b656988c0fb599c4b2b88d8ff9876a220 (diff)
downloadFreeBSD-src-9d5ac12664fb83bc03eb0b208025bd9db436ecf9.zip
FreeBSD-src-9d5ac12664fb83bc03eb0b208025bd9db436ecf9.tar.gz
If building elf, don't link in libmd.a just for libskey.so to use. Under
elf, libskey.so will not expose it's implementation on it's caller.
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile
index 9ded00c..8bff475 100644
--- a/usr.bin/login/Makefile
+++ b/usr.bin/login/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.1 (Berkeley) 7/19/93
-# $Id$
+# $Id: Makefile,v 1.16 1997/02/22 19:55:57 peter Exp $
PROG= login
MAN1= login.1
@@ -15,8 +15,14 @@ CFLAGS+=-DSKEY -DLOGIN_ACCESS -DLOGALL -DLOGIN_CAP $(LC_AUTH)
CFLAGS+=-DKLOGIN_PARANOID
.endif
-DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
-LDADD= -lutil -lskey -lmd -lcrypt
+DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBCRYPT}
+LDADD= -lutil -lskey -lcrypt
+
+# have to provide libmd.a for libskey.so to use.
+.if ${BINFORMAT} != elf
+DPADD+= ${LIBMD}
+LDADD+= lmd
+.endif
.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES) && !defined(LC_AUTH)
CFLAGS+=-DKERBEROS
OpenPOWER on IntegriCloud