The semantic equivalent of $ORIGIN on macOS is @loader_path. That seems to be the intent here, so let's use @loader_path instead of @rpath.
Setting an RPATH of @rpath is, in any case, non-sensical. An @rpath reference tells dyld (the dynamic loader) to use the known RPATHs to resolve the reference, so adding @rpath to the list of known RPATHs doesn't give dyld any more information than it already has.
The semantic equivalent of
$ORIGIN
on macOS is@loader_path
. That seems to be the intent here, so let's use@loader_path
instead of@rpath
.Setting an RPATH of
@rpath
is, in any case, non-sensical. An@rpath
reference tells dyld (the dynamic loader) to use the known RPATHs to resolve the reference, so adding@rpath
to the list of known RPATHs doesn't give dyld any more information than it already has.