From d4297a13c823b62d29d9850ab5815f6c78baf35a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 4 Jun 2020 20:48:01 -0700 Subject: 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. --- pkg/syslinux/gen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/syslinux/gen.lua') diff --git a/pkg/syslinux/gen.lua b/pkg/syslinux/gen.lua index 1fed7da0..0581a145 100644 --- a/pkg/syslinux/gen.lua +++ b/pkg/syslinux/gen.lua @@ -8,7 +8,7 @@ cflags{ -- trashing the libinstaller/advconst.h symlink. '-I $srcdir/com32/include/syslinux', - '-I $builddir/pkg/linux-headers/include', + '-isystem $builddir/pkg/linux-headers/include', } pkg.deps = { -- cgit v1.2.3