Skip to content

Commit

Permalink
add documentation for whitelisting clang command
Browse files Browse the repository at this point in the history
  • Loading branch information
jalevin authored and justinfx committed Jan 13, 2019
1 parent 1ba2b4a commit 3b263c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ Then go get it:
go get gopkg.in/gographics/imagick.v2/imagick
```

Per the security update https://groups.google.com/forum/#!topic/golang-announce/X7N1mvntnoU
you may need whitelist the -Xpreprocessor flag in your environment.

```
export CGO_CFLAGS_ALLOW='-Xpreprocessor'
```

### Build tags

If you want to specify CGO_CFLAGS/CGO_LDFLAGS manually at build time, such as for building statically or without pkg-config, you can use the "no_pkgconfig" build tag:
Expand Down

0 comments on commit 3b263c6

Please sign in to comment.