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/mpv | |
| 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/mpv')
| -rw-r--r-- | pkg/mpv/gen.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pkg/mpv/gen.lua b/pkg/mpv/gen.lua index 6c4c27ca..14af2fd9 100644 --- a/pkg/mpv/gen.lua +++ b/pkg/mpv/gen.lua @@ -14,10 +14,10 @@ cflags{ '-I $dir', '-I $outdir', '-I $srcdir', - '-I $basedir/pkg/ffmpeg/src', - '-I $builddir/pkg/ffmpeg/include', - '-I $builddir/pkg/linux-headers/include', - '-I $builddir/pkg/zlib/include', + '-isystem $basedir/pkg/ffmpeg/src', + '-isystem $builddir/pkg/ffmpeg/include', + '-isystem $builddir/pkg/linux-headers/include', + '-isystem $builddir/pkg/zlib/include', } local libs = { 'ffmpeg/libavcodec.a.d', @@ -124,29 +124,29 @@ end sources = table.keys(sources) if options['HAVE_ALSA'] then - cflags{'-I $builddir/pkg/alsa-lib/include'} + cflags{'-isystem $builddir/pkg/alsa-lib/include'} table.insert(libs, 'alsa-lib/libasound.a') table.insert(pkg.deps, 'pkg/alsa-lib/headers') end if options['HAVE_DRM'] then - cflags{'-I $builddir/pkg/libdrm/include'} + cflags{'-isystem $builddir/pkg/libdrm/include'} table.insert(libs, 'libdrm/libdrm.a') table.insert(pkg.deps, 'pkg/libdrm/headers') end if options['HAVE_LIBASS'] then - cflags{'-I $builddir/pkg/libass/include'} + cflags{'-isystem $builddir/pkg/libass/include'} table.insert(libs, 'libass/libass.a.d') table.insert(pkg.deps, 'pkg/libass/headers') end if options['HAVE_LUA'] then - cflags{'-I $builddir/pkg/lua/include'} + cflags{'-isystem $builddir/pkg/lua/include'} table.insert(libs, 'lua/liblua.a') table.insert(pkg.deps, 'pkg/lua/headers') end if options['HAVE_WAYLAND'] then cflags{ - '-I $builddir/pkg/libxkbcommon/include', - '-I $builddir/pkg/wayland/include', + '-isystem $builddir/pkg/libxkbcommon/include', + '-isystem $builddir/pkg/wayland/include', } table.insert(libs, { 'wayland/libwayland-client.a.d', |
