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/file/gen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/file') diff --git a/pkg/file/gen.lua b/pkg/file/gen.lua index b5c3b18e..52ffabce 100644 --- a/pkg/file/gen.lua +++ b/pkg/file/gen.lua @@ -6,7 +6,7 @@ cflags{ '-D _GNU_SOURCE', '-I $dir', '-I $outdir/include', - '-I $builddir/pkg/zlib/include', + '-isystem $builddir/pkg/zlib/include', } build('sed', '$outdir/include/magic.h', '$srcdir/src/magic.h.in', { -- cgit v1.2.3