diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 6a66d91f..927efe05 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++") } } }