summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1995-03-18 17:36:30 +0000
committernate <nate@FreeBSD.org>1995-03-18 17:36:30 +0000
commite6facc0d0dc8ba97f07d166721110e0bf24db9e2 (patch)
treec21e3965e1d2f71cfffd01890d69432023731969 /usr.bin
parentd5bfc1260562c0c63c6402d088b4973000c17286 (diff)
downloadFreeBSD-src-e6facc0d0dc8ba97f07d166721110e0bf24db9e2.zip
FreeBSD-src-e6facc0d0dc8ba97f07d166721110e0bf24db9e2.tar.gz
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.
Diffstat (limited to 'usr.bin')
-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 fff8503..3c40389 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))
OpenPOWER on IntegriCloud