When a static library link_whole to a bunch of other static libraries, we have to extract all their objects recursively. But that could introduce duplicated objects. ar is dumb enough to allow this without error, but once the resulting static library is linked into an executable or shared library, the linker will complain about duplicated symbols.pull/6256/head
parent
f89b7effb5
commit
f89f1422bf
5 changed files with 31 additions and 1 deletions
@ -0,0 +1,4 @@ |
||||
int func17() |
||||
{ |
||||
return 1; |
||||
} |
@ -0,0 +1,6 @@ |
||||
int func17(); |
||||
|
||||
int func18() |
||||
{ |
||||
return func17() + 1; |
||||
} |
@ -0,0 +1,7 @@ |
||||
int func17(); |
||||
int func18(); |
||||
|
||||
int func19() |
||||
{ |
||||
return func17() + func18(); |
||||
} |
Loading…
Reference in new issue