summaryrefslogtreecommitdiff
path: root/pkg/nginx/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-04 20:48:01 -0700
committerMichael Forney <mforney@mforney.org>2020-06-05 03:01:44 -0700
commitd4297a13c823b62d29d9850ab5815f6c78baf35a (patch)
tree153ebe760b69008ea6ff38d7066368d6f254b96b /pkg/nginx/gen.lua
parentab438ea71e5b61956b9ad8c5b5f56e3a6c6b66c3 (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/nginx/gen.lua')
-rw-r--r--pkg/nginx/gen.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/nginx/gen.lua b/pkg/nginx/gen.lua
index 9d209b56..cdc4430c 100644
--- a/pkg/nginx/gen.lua
+++ b/pkg/nginx/gen.lua
@@ -3,7 +3,7 @@ cflags{
'-I $srcdir/src/core',
'-I $srcdir/src/event',
'-I $srcdir/src/os/unix',
- '-I $builddir/pkg/linux-headers/include',
+ '-isystem $builddir/pkg/linux-headers/include',
}
local libs = {}
pkg.deps = {'pkg/linux-headers/headers'}
@@ -14,7 +14,7 @@ for line in iterlines('modules.txt') do
end
if modules['openssl'] then
- cflags{'-I $builddir/pkg/libressl/include'}
+ cflags{'-isystem $builddir/pkg/libressl/include'}
table.insert(libs, {
'$builddir/pkg/libressl/libssl.a.d',
'$builddir/pkg/libressl/libcrypto.a.d',
@@ -22,7 +22,7 @@ if modules['openssl'] then
table.insert(pkg.deps, 'pkg/libressl/headers')
end
if modules['regex'] then
- cflags{'-I $builddir/pkg/pcre/include'}
+ cflags{'-isystem $builddir/pkg/pcre/include'}
table.insert(libs, '$builddir/pkg/pcre/libpcre.a')
table.insert(pkg.deps, 'pkg/pcre/headers')
end
@@ -34,7 +34,7 @@ for line in iterlines('ngx_auto_config.h', 1) do
end
end
if zlib then
- cflags{'-I $builddir/pkg/zlib/include'}
+ cflags{'-isystem $builddir/pkg/zlib/include'}
table.insert(libs, '$builddir/pkg/zlib/libz.a')
table.insert(pkg.deps, 'pkg/zlib/headers')
end