summaryrefslogtreecommitdiff
path: root/pkg/openbsd
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-04 20:48:01 -0700
committerMichael Forney <mforney@mforney.org>2020-06-05 03:01:44 -0700
commitd4297a13c823b62d29d9850ab5815f6c78baf35a (patch)
tree153ebe760b69008ea6ff38d7066368d6f254b96b /pkg/openbsd
parentab438ea71e5b61956b9ad8c5b5f56e3a6c6b66c3 (diff)
Use -isystem to include library headers
This way, warnings from headers that come from another package (in particular linux-headers) won't show up when they get included. To make sure we still track dependencies, use -MD instead of -MMD.
Diffstat (limited to 'pkg/openbsd')
-rw-r--r--pkg/openbsd/gen.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/openbsd/gen.lua b/pkg/openbsd/gen.lua
index b29779c0..77778e8c 100644
--- a/pkg/openbsd/gen.lua
+++ b/pkg/openbsd/gen.lua
@@ -47,7 +47,7 @@ man{'usr.bin/fmt/fmt.1'}
-- nc
sub('nc.ninja', function()
- cflags{'-I $builddir/pkg/libtls-bearssl/include'}
+ cflags{'-isystem $builddir/pkg/libtls-bearssl/include'}
exe('nc', [[
usr.bin/nc/(netcat.c atomicio.c socks.c)
$builddir/pkg/libtls-bearssl/libtls.a.d