From owner-freebsd-current Wed Sep 2 10:43:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA01339 for freebsd-current-outgoing; Wed, 2 Sep 1998 10:43:26 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA01333 for ; Wed, 2 Sep 1998 10:43:19 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id KAA23527; Wed, 2 Sep 1998 10:41:56 -0700 (PDT) (envelope-from jdp) Message-Id: <199809021741.KAA23527@austin.polstra.com> To: Mark Murray cc: current@FreeBSD.ORG Subject: Re: B CURRENT Build environment (Was: Re: Why no ldconfig for ELF?) In-reply-to: Your message of "Wed, 02 Sep 1998 19:35:24 +0200." <199809021735.TAA01877@gratis.grondar.za> Date: Wed, 02 Sep 1998 10:41:56 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > lib/auto/POSIX/POSIX.so: > LD_RUN_PATH=\"${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib\" \ > sh ext/util/make_ext dynamic ${.TARGET} \ > MAKE=make PERL_SRC=${.OBJDIR} > > The line beginning LD_RUN_PATH is the critical bit; I need to pass > the current _build_ directory containing the ELF libraries (this system > is currently a.out). What is the right way to do this? The above does not > work, as ${WORLDTMP} is not set here, only in /usr/src/Makefile.inc1. In general, you want to set LD_RUN_PATH to the directories where needed shared libraries will be found after they are installed into their final resting places. If you need to use the libraries before they are installed, it's best to use LD_LIBRARY_PATH to say where they are at that point in time. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message