This can also just be a normal run-pass test, using the `compile-flags` directive ([docs](https://github.com/mozilla/rust/wiki/Note-testsuite#language-and-compiler-tests)), i.e.

```rust
<license block>

// Notice the space at the end, this emulates the output of pkg-config
// compile-flags:--linkargs "-lc "

fn main() {}
```

I'd guess that that is nicer than adding a Makefile etc, but I don't really know.