Emit a detailed deprecation warning that explains what to do instead. Also add a unittest. ``` DEPRECATION: target prog links against shared module mymod, which is incorrect. This will be an error in the future, so please use shared_library() for mymod instead. If shared_module() was used for mymod because it has references to undefined symbols, use shared_libary() with `override_options: ['b_lundef=false']` instead. ``` Fixes https://github.com/mesonbuild/meson/issues/9492pull/9667/head
parent
dc5b0cf50c
commit
54b2fc3f57
9 changed files with 63 additions and 15 deletions
@ -1,7 +1,7 @@ |
|||||||
{ |
{ |
||||||
"stdout": [ |
"stdout": [ |
||||||
{ |
{ |
||||||
"line": "test cases/failing/75 link with shared module on osx/meson.build:8:0: ERROR: target links against shared modules. This is not permitted on OSX" |
"line": "test cases/failing/75 link with shared module on osx/meson.build:8:0: ERROR: target prog links against shared module mymodule. This is not permitted on OSX" |
||||||
} |
} |
||||||
] |
] |
||||||
} |
} |
||||||
|
@ -0,0 +1,5 @@ |
|||||||
|
int versioned_func (void); |
||||||
|
|
||||||
|
int main (void) { |
||||||
|
return versioned_func(); |
||||||
|
} |
Loading…
Reference in new issue