Deduplicate export-dynamic and pthread. Closes #4567.
parent
4db1b3a09f
commit
c44a5a1aec
6 changed files with 69 additions and 3 deletions
@ -0,0 +1,5 @@ |
|||||||
|
#include<gmodule.h> |
||||||
|
|
||||||
|
int func() { |
||||||
|
return 0; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
project('lddedup', 'c') |
||||||
|
|
||||||
|
# Chosen because its ldflags contains -Wl,--export-dynamic, |
||||||
|
# which must be deduplicated. |
||||||
|
gm = dependency('gmodule-2.0') |
||||||
|
|
||||||
|
lib = static_library('bob', 'bob.c', |
||||||
|
dependencies: gm) |
||||||
|
|
||||||
|
executable('prog', 'prog.c', |
||||||
|
link_with: lib, |
||||||
|
dependencies: gm) |
@ -0,0 +1,7 @@ |
|||||||
|
#include<gmodule.h> |
||||||
|
|
||||||
|
int func(); |
||||||
|
|
||||||
|
int main(int argc, char **argv) { |
||||||
|
return func(); |
||||||
|
} |
Loading…
Reference in new issue