Are there any best practices to set -rpath
or libtool's -R
based on a pkg-config
output? Do I have to resort to a sed
trick?
pkg-config: best practice for setting -rpath?
Asked Answered
Generally rpath is not portable, that's why pkg-config packages does not have it, because all the libraries are in the default system path. So why would you use rpath in this case?
I understand what you mean, but can you give an example that a pkg-config library have rpath in other directories? –
Evade
© 2022 - 2024 — McMap. All rights reserved.
PKG_CONFIG_PATH
) is much more versatile. – Devotional