• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: info.plist with DYLD_LIBRARY_PATH = ~/test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: info.plist with DYLD_LIBRARY_PATH = ~/test


  • Subject: Re: info.plist with DYLD_LIBRARY_PATH = ~/test
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 2 Oct 2010 04:07:55 -0500

On Oct 2, 2010, at 3:48 AM, Kurt Sutter wrote:

> Yes, that is an option I have considered. But, if I understand this correctly, it would mean resolving some hundred symbols through dlsym and providing a glue function for each of them. Right?

I don't see the need for a glue function.  You do have to resolve the symbols you use.  It is pretty typical to use a table, and possibly a bit of macro magic, to do this with minimal fuss.


> (One other option I have just discovered is to place a symlink file in ~/lib, which seems to be in the search path of the dynamic library loader. Any thoughts about this?)

I think it's a terrible idea.  Both this and the use of DYLD_* variables have the same problem, which is that they affect things other than just your code.  The symlink in ~/lib will affect absolutely everything run by that user.  The DYLD_* environment variables are at least limited to your app process and its children, but that can still have unanticipated knock-on effects.  Suppose, for example, that some Python module invokes a system tool to do its work.  Suppose further that, as an implementation detail, that system tool uses Python internally.  Your DYLD_* variable has now changed the behavior of that system tool and that Python module, possibly breaking them.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: info.plist with DYLD_LIBRARY_PATH = ~/test
      • From: Kurt Sutter <email@hidden>
References: 
 >info.plist with DYLD_LIBRARY_PATH = ~/test (From: Kurt Sutter <email@hidden>)
 >Re: info.plist with DYLD_LIBRARY_PATH = ~/test (From: Ken Thomases <email@hidden>)
 >Re: info.plist with DYLD_LIBRARY_PATH = ~/test (From: Kurt Sutter <email@hidden>)

  • Prev by Date: Re: App works in debugger, won't launch in Finder
  • Next by Date: Re: info.plist with DYLD_LIBRARY_PATH = ~/test
  • Previous by thread: Re: info.plist with DYLD_LIBRARY_PATH = ~/test
  • Next by thread: Re: info.plist with DYLD_LIBRARY_PATH = ~/test
  • Index(es):
    • Date
    • Thread