| 1 |
# Test https://github.com/mesonbuild/meson/issues/2096 |
| 2 |
# Note that removing 'shnodep' from link_with: makes the error go away because |
| 3 |
# then it is added after the static library is added to the link command. |
| 4 |
test('shared-static', executable('shstexe', 'shstmain.c', link_with : [shnodep, stshdep])) |
| 5 |
|
| 6 |
# Static library that needs a symbol defined in an object file. This already |
| 7 |
# works, but good to add a test case early. |
| 8 |
stodep = static_library('stodep', 'libsto.c') |
| 9 |
test('stodep', executable('stodep', 'stomain.c', 'stobuilt.c', link_with : stodep)) |