This tests that CMake link flags marked as PRIVATE are not propagated through the generated Meson dependency. -Wl,--version-script is used as the "poison" here, the build ultimately fails if it appears in the shared_library() link command.pull/13429/head
parent
6165db80bb
commit
066cf804bb
5 changed files with 36 additions and 0 deletions
@ -0,0 +1,6 @@ |
||||
extern void slib(); |
||||
|
||||
int main() { |
||||
slib(); |
||||
return 0; |
||||
} |
@ -0,0 +1,14 @@ |
||||
#include <iostream> |
||||
#include <cmMod.hpp> |
||||
#include "config.h" |
||||
|
||||
#if CONFIG_OPT != 42 |
||||
#error "Invalid value of CONFIG_OPT" |
||||
#endif |
||||
|
||||
using namespace std; |
||||
|
||||
void slib(void) { |
||||
cmModClass obj("Hello from lib"); |
||||
cout << obj.getStr() << endl; |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
global: |
||||
extern "C++" { |
||||
cmModClass::*; |
||||
}; |
||||
local: *; |
||||
}; |
Loading…
Reference in new issue