On Wed, 2019-02-20 at 02:45 +0100, Bruno Haible wrote:
> Paul Smith noted on gnu-prog-discuss that other systems than glibc
> have support for $ORIGIN in rpath. This patch changes the
> 'relocatable-prog' module to make use of this feature, thus removing
> the need for a "wrapper"/"trampoline" executable on these platforms.

MacOS has @executable_path which is the same as $ORIGIN.  See:

https://wincent.com/wiki/%40executable_path%2C_%40load_path_and_%40rpath

Unfortunately on MacOS they have "applications" which are much more
complicated and can have frameworks etc.  But I think @executable_path
is pretty close to exactly the same thing as $ORIGIN and works fine if
you're just building a normal application.


Reply via email to