]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
compiler: -Wmissing-include-dirs hardening
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Feb 2019 19:31:20 +0000 (20:31 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Feb 2019 21:36:30 +0000 (22:36 +0100)
Warn if a user-supplied include directory does not exist.

This already surfaced a bug that is fixed by this commit.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
configure.ac
src/tests/Makefile.am

index 6aee94be37e2691c3393976823b801a1fcff33d3..5918bc5e487a0a24732439600cbfeeea4ce69ff0 100644 (file)
@@ -702,6 +702,7 @@ AX_CHECK_COMPILE_FLAG([-g], [CFLAGS="$CFLAGS -g"],,[-Werror])
 AX_CHECK_COMPILE_FLAG([--mcet -fcf-protection], [CFLAGS="$CFLAGS --mcet -fcf-protection"],,[-Werror])
 AX_CHECK_COMPILE_FLAG([-Werror=implicit-function-declaration], [CFLAGS="$CFLAGS -Werror=implicit-function-declaration"],,[-Werror])
 AX_CHECK_COMPILE_FLAG([-Wlogical-op], [CFLAGS="$CFLAGS -Wlogical-op"],,[-Werror])
+AX_CHECK_COMPILE_FLAG([-Wmissing-include-dirs], [CFLAGS="$CFLAGS -Wmissing-include-dirs"],,[-Werror])
 
 AX_CHECK_LINK_FLAG([-z relro], [LDLAGS="$LDLAGS -z relro"],,[])
 AX_CHECK_LINK_FLAG([-z now], [LDLAGS="$LDLAGS -z now"],,[])
index f03d61eb82c7553a70b38075cb293e7668036ff5..842708c443e6ced6b40cf55350340c790281c773 100644 (file)
@@ -48,7 +48,6 @@ AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
          -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
          -I $(top_srcdir)/src \
          -I $(top_srcdir)/src/lxc \
-         -I $(top_srcdir)/src/lxc/bdev \
          -I $(top_srcdir)/src/lxc/cgroups \
          -I $(top_srcdir)/src/lxc/tools \
          -pthread