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?
Asked
Active
Viewed 1,128 times
8

Toby Speight
- 27,591
- 48
- 66
- 103

nodakai
- 7,773
- 3
- 30
- 60
1 Answers
-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?

fluter
- 13,238
- 8
- 62
- 100
-
1"because all the libraries are in the default system path" No, pkg-config (together with `PKG_CONFIG_PATH`) is much more versatile. – nodakai Apr 11 '16 at 12:58
-
I understand what you mean, but can you give an example that a pkg-config library have rpath in other directories? – fluter Apr 11 '16 at 13:00