From 4dcd09e8cb0a30f87f9d7d2a404a56a32352f5a7 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Wed, 13 May 2020 21:56:20 +0200 Subject: sys/targets: add -lc++ when building for test os on FreeBSD This unbreaks gmake presubmit on FreeBSD. --- sys/targets/targets.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/targets') 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++") } } } -- cgit mrf-deployment