From owner-freebsd-emulation Fri Sep 7 9:18:14 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id 14DF137B409 for ; Fri, 7 Sep 2001 09:18:08 -0700 (PDT) Received: from node7.cluster.srrc.usda.gov (node7.cluster.srrc.usda.gov [192.168.1.7]) by symbion.srrc.usda.gov (8.11.6/8.11.6) with ESMTP id f87GI6711371; Fri, 7 Sep 2001 11:18:06 -0500 (CDT) (envelope-from gjohnson@srrc.ars.usda.gov) Received: (from glenn@localhost) by node7.cluster.srrc.usda.gov (8.11.6/8.11.6) id f87GI6L38556; Fri, 7 Sep 2001 11:18:06 -0500 (CDT) (envelope-from glenn) Date: Fri, 7 Sep 2001 11:18:05 -0500 From: Glenn Johnson To: John Polstra Cc: emulation@freebsd.org Subject: Re: LD_PRELOAD and linux binaries Message-ID: <20010907111805.A38412@node7.cluster.srrc.usda.gov> References: <20010907102249.C37844@node7.cluster.srrc.usda.gov> <200109071607.f87G7ui01671@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200109071607.f87G7ui01671@vashon.polstra.com>; from jdp@polstra.com on Fri, Sep 07, 2001 at 09:07:56AM -0700 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 On Fri, Sep 07, 2001 at 09:07:56AM -0700, John Polstra wrote: > 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. In this case, I am using the LD_PRELOAD variable for all gtk applications. I have many more of those then of Linux programs so either way it is basically the same problem. The gdkxft library being loaded is for anti-aliasing fonts for gtk applications. I really do not absolutely need this functionality but I was just wondering if there was a good way to get around the Linux binary and LD_PRELOAD problem while I was using it. Thanks. -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@srrc.ars.usda.gov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message