aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su/Makefile
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1995-03-18 17:36:30 +0000
committerNate Williams <nate@FreeBSD.org>1995-03-18 17:36:30 +0000
commite6fc505e8f0f952996422897349502cf395a6e78 (patch)
treec21e3965e1d2f71cfffd01890d69432023731969 /usr.bin/su/Makefile
parentc36c788214fd313db4592821e448e332678356ba (diff)
downloadsrc-e6fc505e8f0f952996422897349502cf395a6e78.tar.gz
src-e6fc505e8f0f952996422897349502cf395a6e78.zip
Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless -lcrypt occurs after it in the link command. This only occurs when linking statically.
Notes
Notes: svn path=/head/; revision=7141
Diffstat (limited to 'usr.bin/su/Makefile')
-rw-r--r--usr.bin/su/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile
index fff8503ef894..3c4038950b63 100644
--- a/usr.bin/su/Makefile
+++ b/usr.bin/su/Makefile
@@ -5,8 +5,8 @@ SRCS= su.c
CFLAGS+=-DSKEY
-LDADD= -lcrypt -lskey -lmd
-DPADD= ${LIBCRYPT} ${LIBSKEY} ${LIBMD}
+LDADD= -lskey -lmd -lcrypt
+DPADD= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
|| defined(MAKE_EBONES))