From 3239491159a2f5389f0e7df9fffeb96b19a2f25e Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 16 Dec 1999 10:55:45 +0000 Subject: [PATCH] Add libmd (or move it after libcrypt). We don't want the linker to be smart because it will definitely get it wrong. This popped up during cross-linking. --- gnu/usr.bin/perl/suidperl/Makefile | 5 +++-- libexec/makekey/Makefile | 4 ++-- libexec/uucpd/Makefile | 4 ++-- usr.bin/chpass/Makefile | 5 +++-- usr.bin/lock/Makefile | 5 +++-- usr.bin/login/Makefile | 4 ++-- usr.bin/passwd/Makefile | 13 +++++++------ usr.bin/rlogin/Makefile | 4 ++-- usr.bin/rsh/Makefile | 4 ++-- usr.bin/su/Makefile | 4 ++-- usr.sbin/pw/Makefile | 4 ++-- usr.sbin/rpc.yppasswdd/Makefile | 4 ++-- 12 files changed, 32 insertions(+), 28 deletions(-) diff --git a/gnu/usr.bin/perl/suidperl/Makefile b/gnu/usr.bin/perl/suidperl/Makefile index c8d1f45de603..1fc6ffb6ff31 100644 --- a/gnu/usr.bin/perl/suidperl/Makefile +++ b/gnu/usr.bin/perl/suidperl/Makefile @@ -7,8 +7,9 @@ NOMAN= true CFLAGS+=-I${PERL5SRC} -I${.OBJDIR} -DIAMSUID SRCS= perlmain.c sperl.c config.h NOSHARED= no -DPADD= lib/auto/DynaLoader/DynaLoader.a ${LIBPERL} ${LIBM} ${LIBCRYPT} -LDADD= lib/auto/DynaLoader/DynaLoader.a -lperl -lm -lcrypt +DYNALOADER= lib/auto/DynaLoader/DynaLoader.a +DPADD= ${DYNALOADER} ${LIBPERL} ${LIBM} ${LIBCRYPT} ${LIBMD} +LDADD= ${DYNALOADER} -lperl -lm -lcrypt -lmd BINOWN= root BINMODE=4511 LINKS= ${BINDIR}/${PROG} ${BINDIR}/sperl5.00503 diff --git a/libexec/makekey/Makefile b/libexec/makekey/Makefile index 2028c6dad80b..d61df5d824c7 100644 --- a/libexec/makekey/Makefile +++ b/libexec/makekey/Makefile @@ -4,7 +4,7 @@ PROG= makekey MAN8= makekey.8 -DPADD+= ${LIBCRYPT} -LDADD+= -lcrypt +DPADD+= ${LIBCRYPT} ${LIBMD} +LDADD+= -lcrypt -lmd .include diff --git a/libexec/uucpd/Makefile b/libexec/uucpd/Makefile index 3aeb623eab90..c89c5ea153fe 100644 --- a/libexec/uucpd/Makefile +++ b/libexec/uucpd/Makefile @@ -3,6 +3,6 @@ PROG= uucpd MAN8= uucpd.8 -LDADD= -lcrypt -lutil -DPADD= ${LIBCRYPT} ${LIBUTIL} +LDADD= -lcrypt -lutil -lmd +DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD} .include diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index c17a4ce7ceb5..7966608938ce 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/chpass/Makefile @@ -1,4 +1,5 @@ # @(#)Makefile 8.2 (Berkeley) 4/2/94 +# $FreeBSD$ PROG= chpass CFLAGS+=-Wall @@ -26,8 +27,8 @@ COPTS+= -DYP -I. -I${.CURDIR}/../../libexec/ypxfr \ #Some people need this, uncomment to activate #COPTS+= -DRESTRICT_FULLNAME_CHANGE -DPADD= ${LIBRPCSVC} ${LIBCRYPT} -LDADD+= -lrpcsvc -lcrypt +DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD} +LDADD+= -lrpcsvc -lcrypt -lmd CLEANFILES= ${GENSRCS} diff --git a/usr.bin/lock/Makefile b/usr.bin/lock/Makefile index a4b697a51b57..42dbdfc176ec 100644 --- a/usr.bin/lock/Makefile +++ b/usr.bin/lock/Makefile @@ -1,8 +1,9 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= lock BINMODE=4555 -DPADD= ${LIBCRYPT} -LDADD= -lcrypt +DPADD= ${LIBCRYPT} ${LIBMD} +LDADD= -lcrypt -lmd .include diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile index 2813ccbdfe30..165387e9ca5d 100644 --- a/usr.bin/login/Makefile +++ b/usr.bin/login/Makefile @@ -8,8 +8,8 @@ SRCS= login.c login_access.c login_fbtab.c CFLAGS+=-Wall -DLOGIN_ACCESS -DLOGALL -DPADD= ${LIBUTIL} ${LIBCRYPT} -LDADD= -lutil -lcrypt +DPADD= ${LIBUTIL} ${LIBCRYPT} ${LIBMD} +LDADD= -lutil -lcrypt -lmd .if defined(NOPAM) CFLAGS+= -DNO_PAM diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 953e5347e086..39e3a186c4ea 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -12,8 +12,8 @@ GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \ yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c CFLAGS+=-Wall -DPADD= ${LIBCRYPT} ${LIBUTIL} -LDADD= -lcrypt -lutil +DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD} +LDADD= -lcrypt -lutil -lmd .PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ ${.CURDIR}/../rlogin @@ -31,8 +31,8 @@ GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \ yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c CFLAGS+=-Wall -DPADD= ${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} -LDADD= -lcrypt -lrpcsvc -lutil +DPADD= ${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} ${LIBMD} +LDADD= -lcrypt -lrpcsvc -lutil -lmd .PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ ${.CURDIR}/../rlogin ${.CURDIR}/../../libexec/ypxfr \ ${.CURDIR}/../../usr.sbin/rpc.yppasswdd @@ -87,8 +87,9 @@ SRCS+= kpasswd_standalone.c CFLAGS+= -DKERBEROS # XXX not defined: ${LIBKADM}, ${LIBCOM_ERR} -DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL} -LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil +DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} \ + ${LIBUTIL} ${LIBMD} +LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil -lmd DISTRIBUTION= krb4 .endif diff --git a/usr.bin/rlogin/Makefile b/usr.bin/rlogin/Makefile index 97de1dac89bc..6e6439d1eb49 100644 --- a/usr.bin/rlogin/Makefile +++ b/usr.bin/rlogin/Makefile @@ -11,13 +11,13 @@ INSTALLFLAGS=-fschg .if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) SRCS+= krcmd.c kcmd.c rcmd_util.c -DPADD= ${LIBUTIL} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBCOM_ERR} +DPADD= ${LIBUTIL} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBCOM_ERR} ${LIBMD} CFLAGS+=-DKERBEROS -DCRYPT -DHAVE_CONFIG_H \ -I${.CURDIR}/../../kerberosIV/include \ -I${.CURDIR}/../../crypto/kerberosIV/include \ -I${.CURDIR}/../../crypto/kerberosIV/lib/roken \ -I${.CURDIR}/../../crypto/kerberosIV/appl/bsd -LDADD= -lutil -lkrb -ldes -lcrypt -lcom_err +LDADD= -lutil -lkrb -ldes -lcrypt -lcom_err -lmd DISTRIBUTION= krb4 .PATH: ${.CURDIR}/../../crypto/kerberosIV/appl/bsd .endif diff --git a/usr.bin/rsh/Makefile b/usr.bin/rsh/Makefile index ede91df5b93f..4de4bdf45821 100644 --- a/usr.bin/rsh/Makefile +++ b/usr.bin/rsh/Makefile @@ -14,8 +14,8 @@ CFLAGS+=-DKERBEROS -DCRYPT -DHAVE_CONFIG_H \ -I${.CURDIR}/../../crypto/kerberosIV/include \ -I${.CURDIR}/../../crypto/kerberosIV/lib/roken \ -I${.CURDIR}/../../crypto/kerberosIV/appl/bsd -DPADD= ${LIBUTIL} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBCOM_ERR} -LDADD= -lutil -lkrb -ldes -lcrypt -lcom_err +DPADD= ${LIBUTIL} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBCOM_ERR} ${LIBMD} +LDADD= -lutil -lkrb -ldes -lcrypt -lcom_err -lmd DISTRIBUTION= krb4 .PATH: ${.CURDIR}/../../crypto/kerberosIV/appl/bsd .endif diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile index 91ac2a81e500..edac50777756 100644 --- a/usr.bin/su/Makefile +++ b/usr.bin/su/Makefile @@ -5,8 +5,8 @@ PROG= su SRCS= su.c COPTS+= -DLOGIN_CAP -DSKEY -DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT} -LDADD= -lutil -lskey -lmd -lcrypt +DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBCRYPT} ${LIBMD} +LDADD= -lutil -lskey -lcrypt -lmd .if defined(WHEELSU) COPTS+= -DWHEELSU diff --git a/usr.sbin/pw/Makefile b/usr.sbin/pw/Makefile index e6c9fa309e24..02c295716c8d 100644 --- a/usr.sbin/pw/Makefile +++ b/usr.sbin/pw/Makefile @@ -10,8 +10,8 @@ MAN8= pw.8 #RND= -DUSE_MD5RAND CFLAGS+= -W -Wall $(CDB) $(RND) -LDADD= -lcrypt -DPADD= ${LIBCRYPT} +LDADD= -lcrypt -lmd +DPADD= ${LIBCRYPT} ${LIBMD} BINMODE=0555 diff --git a/usr.sbin/rpc.yppasswdd/Makefile b/usr.sbin/rpc.yppasswdd/Makefile index 772b5fbc7fa2..eb630619aa00 100644 --- a/usr.sbin/rpc.yppasswdd/Makefile +++ b/usr.sbin/rpc.yppasswdd/Makefile @@ -17,8 +17,8 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/vipw -I${.CURDIR}/../../usr.sbin/ypserv \ -I${.CURDIR}/../../libexec/ypxfr -I${.CURDIR}/../../usr.bin/chpass \ -I${.CURDIR} -I. -DPADD= ${LIBRPCSVC} ${LIBCRYPT} -LDADD= -lrpcsvc -lcrypt +DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD} +LDADD= -lrpcsvc -lcrypt -lmd CLEANFILES= ${GENSRCS}