bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: relocatable-prog: Use $ORIGIN trick on more platforms


From: Paul Smith
Subject: Re: relocatable-prog: Use $ORIGIN trick on more platforms
Date: Wed, 20 Feb 2019 11:12:54 -0500

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

[Prev in Thread] Current Thread [Next in Thread]