Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple library distrobution




On Oct 16, 2004, at 2:56 PM, robert delius royar wrote:


Is it more correct to use DYLD_FALLBACK_LIBRARY_PATH than to use DYLD_LIBRARY_PATH? DYLD_LIBRARY_PATH appears to be for testing new directories before installing them.


It's a tricky question in this particular case.

We're assuming that some users might have X11 installed, and some might not. Now, there are actually several versions of X11 which they might have installed (from Apple, from XFree86, and from X.org) and they are not all binary compatible. It might be the case that the incompatibilities won't matter for the software that the original poster was concerned with. But if they do, you want to make sure that dyld finds the *correct* copy of the library. Using DYLD_LIBRARY_PATH guarantees this, since it is searched first.

(What I have in mind is a wrapper shell script for the actual executable,
which just sets that environment variable and then launches the executable. You certainly *don't* want to set it more globallly, or ask users to set it themselves, or anything like that, as that could indeed mess things up.)


  -- Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Apple library distrobution (From: Ken Mankoff <email@hidden>)
 >Re: Apple library distrobution (From: "David R. Morrison" <email@hidden>)
 >Re: Apple library distrobution (From: robert delius royar <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.