Since `_process_libs` appends the lib's dependencies this list already, the final return value of `_process_libs` will end up after its dependencies, which is the wrong way around. (The lib must come first, then its dependencies) The easiest solution is to simply pre-pend the return value of `_process_libs` rather than appending it, so that its dependencies come after the library itself. Closes #4091.pull/4631/head
parent
f0ee06bdab
commit
261ab9b214
3 changed files with 26 additions and 2 deletions
@ -0,0 +1,11 @@ |
||||
project('link order test', 'c') |
||||
|
||||
dep = library('dependency', []) |
||||
lib = static_library('something', [], link_with: dep) |
||||
|
||||
import('pkgconfig').generate( |
||||
name: 'libsomething', |
||||
description: 'test library', |
||||
libraries: lib, |
||||
version: '1' |
||||
) |
Loading…
Reference in new issue