aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-09-02 14:46:20 +0000
committerBruce Evans <bde@FreeBSD.org>1998-09-02 14:46:20 +0000
commit83294a65d7d52548039cfe1e91bdc52e1f56758a (patch)
tree0a010986fc5b805a2b313a687532e96c124fb1d2 /usr.bin/su
parent1d0de5e5577f4ac28a8bb16345e61384ac0e0dcb (diff)
downloadsrc-83294a65d7d52548039cfe1e91bdc52e1f56758a.tar.gz
src-83294a65d7d52548039cfe1e91bdc52e1f56758a.zip
Removed a buggy ifdef for not linking libmd explicitly. Explicit
linkage is needed for the NOSHARED=YES case, so it is simplest to never depend on the automagic linkage for elf shared libraries. Reviewed by: jdp
Notes
Notes: svn path=/head/; revision=38750
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/Makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile
index 7aa9d361f2a3..798b67d2a7ca 100644
--- a/usr.bin/su/Makefile
+++ b/usr.bin/su/Makefile
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 7/19/93
-# $Id$
+# $Id: Makefile,v 1.19 1998/08/30 17:02:51 gpalmer Exp $
PROG= su
SRCS= su.c
@@ -11,8 +11,8 @@ DPADD+= ${LIBUTIL}
.if !defined(LC_AUTH)
COPTS+= -DSKEY
-LDADD+= -lskey -lcrypt
-DPADD+= ${LIBSKEY} ${LIBCRYPT}
+LDADD+= -lskey -lmd -lcrypt
+DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
.endif
.if defined(WHEELSU)
@@ -28,12 +28,6 @@ LDADD+= -lkrb -ldes
DISTRIBUTION= krb
.endif
-# Do we have to provide an implementation for libskey.so?
-.if ${OBJFORMAT} != elf || ${MACHINE_ARCH} == "alpha"
-LDADD+= -lmd
-DPADD+= ${LIBMD}
-.endif
-
BINOWN= root
BINMODE=4555
INSTALLFLAGS=-fschg