diff options
| author | Michael Tuexen <tuexen@fh-muenster.de> | 2020-05-13 21:56:20 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-14 11:06:41 +0200 |
| commit | 4dcd09e8cb0a30f87f9d7d2a404a56a32352f5a7 (patch) | |
| tree | 33612db3e983d633eaf1ba18ed8a91587805d433 | |
| parent | e36b2ae53da11f462646204bce64349b0898a340 (diff) | |
sys/targets: add -lc++ when building for test os on FreeBSD
This unbreaks gmake presubmit on FreeBSD.
| -rw-r--r-- | sys/targets/targets.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 6a66d91f7..927efe053 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -432,6 +432,9 @@ func init() { // which is not used by clang. // Ensure clang does not complain about it. target.CFlags = append(target.CFlags, "-Wno-unused-command-line-argument") + // When building executor for the test OS, clang needs + // to link against the c++ library. + target.CFlags = append(target.CFlags, "-lc++") } } } |
