From 7b2d810a976910ac8504aa881b90172020f23534 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Wed, 1 Sep 1999 09:12:16 +0000 Subject: [PATCH] Make the libcrypt's build in the correct order. --- lib/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 23f75a3ddcd7..579d4ccdde4e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -9,7 +9,7 @@ # libcrypt must be built before libskey. # libm must be built before libstdc++. # libmd must be built before libatm, libopie, libradius, libskey, -# and libtacplus. +# libtacplus and libcrypt. # libncurses must be built before libdialog, libedit and libreadline. # libradius must be built before libpam. # libskey must be built before libpam. @@ -17,7 +17,7 @@ # # Otherwise, the SUBDIR list should be in alphabetical order. -SUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd \ +SUBDIR= ${_csu} libcom_err ${_libm} libmd ${_libcrypt} \ libradius libskey libtacplus \ ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \ libcompat libdevstat libdisk libncurses libedit libfetch \ @@ -37,12 +37,11 @@ _csu=csu/${MACHINE_ARCH} _libc_r= libc_r .endif +_libcrypt= libcrypt +.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) # Build both libraries. They have different names, so no harm, # and this avoids having stale libscrypt.* -.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) -_libcrypt= ../secure/lib/libcrypt libcrypt -.else -_libcrypt= libcrypt +_libcrypt+= ../secure/lib/libcrypt .endif .if ${MACHINE_ARCH} == "i386"