From owner-freebsd-current Wed Sep 2 10:36:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29845 for freebsd-current-outgoing; Wed, 2 Sep 1998 10:36:59 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA29837 for ; Wed, 2 Sep 1998 10:36:51 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (IDENT:ckp9xnj84i5dt7t74ABe19uGZ6lcZ6me@localhost [127.0.0.1]) by gratis.grondar.za (8.9.1/8.9.1) with ESMTP id TAA01877; Wed, 2 Sep 1998 19:35:26 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199809021735.TAA01877@gratis.grondar.za> To: John Polstra cc: current@FreeBSD.ORG Subject: B CURRENT Build environment (Was: Re: Why no ldconfig for ELF?) Date: Wed, 02 Sep 1998 19:35:24 +0200 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote in answer to an unrelated question: > You specify the search path at _link_ time with LD_RUN_PATH or the > "-R" linker option. The path is saved in the executable or shared > library itself. Hmm - this raises questions. I am trying to unravel what happens in an aout->ELF build and at the same time make BMaked perl5 compile to ELF on an aout system. In one of my Makefiles I have: 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. How might this break an ELF load later? Will the binary have the wrong load directories hardcoded? Thanks! M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message