aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2017-11-28 16:13:37 -0500
committerDmitry Vyukov <dvyukov@google.com>2017-11-29 08:55:05 +0100
commit1a6a7478c298a362d63a2f412155c70b7f97671d (patch)
treea35a29c78a995d1b14f3f674a840eb7a2a42fa8c /docs
parent1808de66ce1b8db0fc76b5b6398e3386ca2e7ad6 (diff)
docs: use 'c++' to build on FreeBSD
Building the executor via `gcc executor/executor_freebsd.cc ...` requires that a GCC package first be installed on the FreeBSD VM image. The FreeBSD base system comes with Clang already installed, so we can build via `c++ executor/executor_freebsd.cc ...` and avoid having to install additional packages.
Diffstat (limited to 'docs')
-rw-r--r--docs/freebsd.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/freebsd.md b/docs/freebsd.md
index e20c6f4b7..d15689ac5 100644
--- a/docs/freebsd.md
+++ b/docs/freebsd.md
@@ -8,7 +8,7 @@ make manager fuzzer execprog TARGETOS=freebsd
```
To build C `syz-executor` binary, copy `executor/*` files to a FreeBSD machine and build there with:
```
-gcc executor/executor_freebsd.cc -o syz-executor -O1 -lpthread -DGOOS=\"freebsd\" -DGIT_REVISION=\"CURRENT_GIT_REVISION\"
+c++ executor/executor_freebsd.cc -o syz-executor -O1 -lpthread -DGOOS=\"freebsd\" -DGIT_REVISION=\"CURRENT_GIT_REVISION\"
```
Then, copy out the binary back to host into `bin/freebsd_amd64` dir.