From 4e3be11bfa392656042f4e8e979e9b7766c328f6 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Mon, 19 Nov 2018 14:04:12 -0800 Subject: [PATCH] [docs] Update new_project_guide.md to be explicit about linking with clang++. This regularly comes up, e.g. https://github.com/google/oss-fuzz/issues/1961. --- docs/new_project_guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/new_project_guide.md b/docs/new_project_guide.md index fd12c716f..f1d8932ba 100644 --- a/docs/new_project_guide.md +++ b/docs/new_project_guide.md @@ -180,6 +180,8 @@ When build.sh script is executed, the following locations are available within t While files layout is fixed within a container, the environment variables are provided to be able to write retargetable scripts. +### Requirements + You *must* use the special compiler flags needed to build your project and fuzz targets. These flags are provided in the following environment variables: @@ -188,6 +190,8 @@ These flags are provided in the following environment variables: | `$CC`, `$CXX`, `$CCC` | The C and C++ compiler binaries. | `$CFLAGS`, `$CXXFLAGS` | C and C++ compiler flags. +You *must* use `$CXX` as a linker, even if you project is written in pure C. + Most well-crafted build scripts will automatically use these variables. If not, pass them manually to the build tool.