sys/targets: add -lc++ when building for test os on FreeBSD

This unbreaks gmake presubmit on FreeBSD.
This commit is contained in:
Michael Tuexen 2020-05-13 21:56:20 +02:00 committed by Dmitry Vyukov
parent e36b2ae53d
commit 4dcd09e8cb

View File

@ -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++")
}
}
}