diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-04 20:48:01 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-05 03:01:44 -0700 |
| commit | d4297a13c823b62d29d9850ab5815f6c78baf35a (patch) | |
| tree | 153ebe760b69008ea6ff38d7066368d6f254b96b /pkg/libfido2/gen.lua | |
| parent | ab438ea71e5b61956b9ad8c5b5f56e3a6c6b66c3 (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/libfido2/gen.lua')
| -rw-r--r-- | pkg/libfido2/gen.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/libfido2/gen.lua b/pkg/libfido2/gen.lua index 490834a0..193a4594 100644 --- a/pkg/libfido2/gen.lua +++ b/pkg/libfido2/gen.lua @@ -3,11 +3,11 @@ cflags{ '-include $outdir/config.h', '-D _DEFAULT_SOURCE', '-D _FIDO_INTERNAL', - '-I $builddir/pkg/bearssl/include', - '-I $builddir/pkg/libcbor/include', - '-I $builddir/pkg/linux-headers/include', '-I $srcdir/src', - '-I $basedir/pkg/openbsd/include', + '-isystem $basedir/pkg/openbsd/include', + '-isystem $builddir/pkg/bearssl/include', + '-isystem $builddir/pkg/libcbor/include', + '-isystem $builddir/pkg/linux-headers/include', } pkg.hdrs = copy('$outdir/include', '$srcdir/src', { |
