From owner-cvs-share Mon Jun 1 13:44:37 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA29346 for cvs-share-outgoing; Mon, 1 Jun 1998 13:44:37 -0700 (PDT) (envelope-from owner-cvs-share) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA29272; Mon, 1 Jun 1998 13:44:20 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id GAA30186; Tue, 2 Jun 1998 06:44:14 +1000 Date: Tue, 2 Jun 1998 06:44:14 +1000 From: Bruce Evans Message-Id: <199806012044.GAA30186@godzilla.zeta.org.au> To: mark@grondar.za, peter@netplex.com.au Subject: Re: cvs commit: src/share/mk bsd.libnames.mk Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-share@FreeBSD.ORG Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> After all: >> LIBKDB?= ${DESTDIR}${LIBDIR}/libkdb.a >> LIBKRB?= ${DESTDIR}${LIBDIR}/libkrb.a >> >> LIBDIR varies depending on the build environment, so it should work >> reasonably well... > >Tried that. > >If you do > ># cd src/usr.bin/rlogin ># make cleandir ># make obj ># make depend ># make all > >...it breaks because ${DESTDIR} and ${LIBDIR} are not defined. >Previously this would work. It would probably work for a "make >buildworld". Maybe "all" needs to define these macros? No, it breaks because bsd.libnames.mk is only included when BINFORMAT != aout. $ cd src/usr.bin/rlogin $ make -V LIBDIR /usr/lib/aout $ make -V DESTDIR $ make -V LIBKRB $ BINFORMAT=zzz make -V LIBKRB ${DESTDIR}${LIBDIR}/libkrb.a bsd.libnames.mk is currently only used for dependencies in the non-aout case. Dependencies are handled better in the aout case using ld -f. Bruce