From e6fc505e8f0f952996422897349502cf395a6e78 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Sat, 18 Mar 1995 17:36:30 +0000 Subject: [PATCH] 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. --- usr.bin/su/Makefile | 4 ++-- 1 file 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))