# build: avoid repeating objects when linking a static library · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/cea8645423604b758208d94ff4d404a0fbae51f8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: cea8645423604b758208d94ff4d404a0fbae51f8

Requested commit: cea8645423604b758208d94ff4d404a0fbae51f8

Commit: cea8645423604b758208d94ff4d404a0fbae51f8

Tree: 7252ed54bcf70c645e24319d8875e8d982e0aef1

Author: Xavier Bouchoux

Committer: Xavier Bouchoux

## Message

```
build: avoid repeating objects when linking a static library

Don't pass the object files from a static library to the linker invocation.
The lib.a file already contains them.

Avoids "duplicate symbol" errors (and useless work by the linker)

```

## Parents

- [8142bc20ea8bcffc076fcbde074a7e315ff0060a](https://git.cafe/gitcafe/zig/commit/8142bc20ea8bcffc076fcbde074a7e315ff0060a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/cea8645423604b758208d94ff4d404a0fbae51f8?format=markdown)
