diff options
| author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-10-11 11:01:22 -0400 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-10-21 01:08:05 +0300 |
| commit | 212a05b87ed34f921dfd07142305389dbfa9bb7d (patch) | |
| tree | eb6cea91360c05c4eaf0e9b591f271e8c94288a3 /test cases/unit/69 static link/lib/func19.c | |
| parent | aece7ecded6f9113535c5b1c3e2f41056d3d041d (diff) | |
| download | meson-212a05b87ed34f921dfd07142305389dbfa9bb7d.tar.gz | |
Remove duplicated object files in static libraries
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.
Diffstat (limited to 'test cases/unit/69 static link/lib/func19.c')
| -rw-r--r-- | test cases/unit/69 static link/lib/func19.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/unit/69 static link/lib/func19.c b/test cases/unit/69 static link/lib/func19.c new file mode 100644 index 000000000..69120e4bf --- /dev/null +++ b/test cases/unit/69 static link/lib/func19.c @@ -0,0 +1,7 @@ +int func17(); +int func18(); + +int func19() +{ + return func17() + func18(); +} |
