[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] apply -rpath option when running install_name_tool
From: |
Peter Bex |
Subject: |
Re: [PATCH] apply -rpath option when running install_name_tool |
Date: |
Mon, 16 Dec 2024 11:59:55 +0100 |
On Thu, Dec 12, 2024 at 03:01:53PM +0100, felix.winkelmann@bevuta.com wrote:
> Hi!
>
> This patch ensures that any runtime-linker path is specified with the "-rpath"
> option in csc, then it is used when invoking "install_name_tool" to modify
> the runtime path in produced executables. Other platforms use "-Wl,-rpath"
> or similar, but on Mac OS this is done via said tool.
>
> This also caused problems when running "make check" on Macs with an old
> installation still in the install-prefix: csc would invoke install_name_tool
> with
> the default prefix and thus any installed libchicken would be picked (instead
> of the new one just built). On Linux LD_LIBRARY_PATH takes care of that
> (and rpaths are not set by default).
Thanks, pushed!