From owner-freebsd-emulation Fri Sep 7 9: 8:15 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id BA83737B401 for ; Fri, 7 Sep 2001 09:08:10 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id f87G7ug77518; Fri, 7 Sep 2001 09:07:56 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id f87G7ui01671; Fri, 7 Sep 2001 09:07:56 -0700 (PDT) (envelope-from jdp) Date: Fri, 7 Sep 2001 09:07:56 -0700 (PDT) Message-Id: <200109071607.f87G7ui01671@vashon.polstra.com> To: emulation@freebsd.org From: John Polstra Cc: gjohnson@srrc.ars.usda.gov Subject: Re: LD_PRELOAD and linux binaries In-Reply-To: <20010907102249.C37844@node7.cluster.srrc.usda.gov> References: <20010907102249.C37844@node7.cluster.srrc.usda.gov> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In article <20010907102249.C37844@node7.cluster.srrc.usda.gov>, Glenn Johnson wrote: > I have been playing around with gdkxft and so have the LD_PRELOAD > environment variable set to point to the gdkxft library. The problem is > with Linux programs which obviously can not link the FreeBSD library. > The LD_PRELOAD environment variable needs to be unset to run these. For > those Linux programs that use a wrapper script, such as netscape it > is easy enough to just unset the variable in the wrapper script. The > problem is with Linux programs that do not use a wrapper script. I know > the wrapper scripts are trivial to write but it does not seem practical > to write a wrapper for every such program. Is there some way you could leave LD_PRELOAD unset, and use wrapper scripts to invoke the applications with which you want to use gdkxft? That's what I'd recommend. I don't think the folks who dreamed up LD_PRELOAD had it in mind that you'd set it except for specific applications. See runsocks, for example. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message