[lxc-devel] [PATCH 2/2] lxc: use -iquote instead of -I
Greg Kurz
gkurz at fr.ibm.com
Thu Nov 3 16:41:16 UTC 2011
To avoid name collisions between local and system header
files. For example, if you try to include the <pty.h>
system file, you end up including the one from lxc...
Signed-off-by: Greg Kurz <gkurz at fr.ibm.com>
---
src/lxc/Makefile.am | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
index 4215a94..5be796d 100644
--- a/src/lxc/Makefile.am
+++ b/src/lxc/Makefile.am
@@ -53,7 +53,12 @@ liblxc_so_SOURCES = \
\
utmp.c utmp.h
-AM_CFLAGS=-I$(top_srcdir)/src \
+DEFAULT_INCLUDES = \
+ -iquote $(builddir) \
+ -iquote $(srcdir) \
+ -iquote $(top_builddir)/src
+
+AM_CFLAGS = \
-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCPATH=\"$(LXCPATH)\" \
-DLXCINITDIR=\"$(LXCINITDIR)\"
More information about the lxc-devel
mailing list