pkg-config: best practice for setting -rpath?
Asked Answered
D

1

8

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?

Devotional answered 11/4, 2016 at 11:39 Comment(0)
E
-2

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?

Evade answered 11/4, 2016 at 12:49 Comment(2)
"because all the libraries are in the default system path" No, pkg-config (together with PKG_CONFIG_PATH) is much more versatile.Devotional
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.