3388
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3387
|
|
|
Jake Petroules |
6 years ago
|
|
|
3386
|
|
|
Jake Petroules |
6 years ago
|
|
|
3385
|
|
Rewrite rpath handling for binaries that are a part of Qbs itself
Exporting a list of rpaths from a target is completely bogus as-is, because a target cannot know a dependee's install location relative to itself. This patch instead has each target category (executables in bin, libraries in lib, libexec binaries in libexec/qbs, and plugins in lib/qbs/plugins) set its relative installation directory at the product level, and then an appropriate rpath is created for the target by calculating a relative path from the target to the lib directory in the context of an installed build. This also has the advantage that rpaths are now calculated dynamically at build time rather than hardcoded, so if a user changes the directory depth of pluginsInstallDir, for example, everything will be adjusted automatically. Each target also therefore now has an rpath pointing exactly to its immediate dependencies, instead of relying on the parent process to inherit the rpath entries. Among simply being correct, this also has the advantage that any target can now be loaded correctly by another process which itself sets no rpath happening to point to the qbs lib directory.
Change-Id: I8fdf24b74ef60426cea0930b7941479919226fd2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
|
Jake Petroules |
6 years ago
|
|
|
3384
|
|
|
Jake Petroules |
6 years ago
|
|
|
3383
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3382
|
|
|
Jake Petroules |
6 years ago
|
|
|
3381
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3380
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3379
|
|
|
Jake Petroules |
6 years ago
|
|
|
3378
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3377
|
|
|
Jake Petroules |
6 years ago
|
|
|
3376
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3375
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3374
|
|
|
Jake Petroules |
6 years ago
|
|
|
3373
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3372
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3371
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3370
|
|
|
Christian Kandeler |
6 years ago
|
|
|
3369
|
|
|
Jake Petroules |
6 years ago
|
|
|