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/st/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/st/gen.lua')
| -rw-r--r-- | pkg/st/gen.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/st/gen.lua b/pkg/st/gen.lua index 9a52a00c..78a28b7a 100644 --- a/pkg/st/gen.lua +++ b/pkg/st/gen.lua @@ -1,13 +1,13 @@ cflags{ [[-D 'VERSION="0.7"']], '-I $dir', - '-I $builddir/pkg/fontconfig/include', - '-I $builddir/pkg/libxkbcommon/include', - '-I $builddir/pkg/linux-headers/include', - '-I $builddir/pkg/pixman/include', - '-I $builddir/pkg/wayland/include', - '-I $builddir/pkg/wayland-protocols/include', - '-I $builddir/pkg/wld/include', + '-isystem $builddir/pkg/fontconfig/include', + '-isystem $builddir/pkg/libxkbcommon/include', + '-isystem $builddir/pkg/linux-headers/include', + '-isystem $builddir/pkg/pixman/include', + '-isystem $builddir/pkg/wayland/include', + '-isystem $builddir/pkg/wayland-protocols/include', + '-isystem $builddir/pkg/wld/include', } pkg.deps = { |
