Re: LD_LIBRARY_PATH set by wrapper on Ubuntu, not on Rocky (Redhat)

2022-09-05 Thread Corey Minyard
On Mon, Sep 05, 2022 at 04:35:43AM +0200, Vincent Lefevre wrote: > On 2022-09-04 20:52:07 -0500, Corey Minyard wrote: > > It compiles a program with -rpath and expects to see the set rpath > > appear after RUNPATH. On the system that works: > > > > $ gcc -o hello hello.c -Wl,-rpath -Wl,/foo > >

Re: LD_LIBRARY_PATH set by wrapper on Ubuntu, not on Rocky (Redhat)

2022-09-05 Thread Alex Ameen
I've run into situations like this on RHEL 6 and 7 with libtool 2.4.6. My approach was manually write a recipe to link a shlib looking in `.libs/' and avoid the wrapper to be used at "build time". The wrapper is made redundant by `RUNPATH' in my opinion when used with `$ORIGIN'; but your mileage m