# build: add \-Dpie option · gitcafe/zig

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

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

Visibility: public

Requested revision: 3e99afdbfe9a66bc5461148a4754c1e88b33fb88

Requested commit: 3e99afdbfe9a66bc5461148a4754c1e88b33fb88

Commit: 3e99afdbfe9a66bc5461148a4754c1e88b33fb88

Tree: 580d0b66d24850d82ae4780ef1559c505dd306bc

Author: Isaac Freund

Committer: Andrew Kelley

## Message

```
build: add -Dpie option

It is becoming increasingly common for distributions to want to enable
PIE for all binaries and zig currently does not provide any way to do
so aside from patching the build.zig.

```

## Parents

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

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