Le 01/02/2022 à 01:29, Ryan Schmidt a écrit :

-rpath flags, in the way I described, are processed by the linker, and the 
linker has no problem with multiple -rpath flags.

libtool also uses -rpath flags for its own purposes and expects there to be 
only one.

You can encode the -rpath flags that we want to send to the linker with the -Wl 
notation so that libtool will ignore them.

So instead of

-rpath ${prefix}/lib/${gccdir}

use

-Wl,-rpath,${prefix}/lib/${gccdir}

Ah I see. That fixed the issue, thank you for the detailed explanation !

I have created a PR,

https://github.com/macports/macports-ports/pull/13862

but I haven't been able to squash all the commits into one though.

Julien

Reply via email to