Otherwise, when files present in both directories, the OVS ones are
chosen.  This is a problem if the OVS build tree has stray OVN headers
(because there was an build there that included OVN).

Signed-off-by: Ben Pfaff <[email protected]>
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 610eb9f79a12..3bc31090396d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -36,6 +36,8 @@ endif
 AM_CPPFLAGS += -I $(top_srcdir)/include
 AM_CPPFLAGS += -I $(top_srcdir)/ovn
 AM_CPPFLAGS += -I $(top_builddir)/include
+AM_CPPFLAGS += -I $(top_srcdir)/lib
+AM_CPPFLAGS += -I $(top_builddir)/lib
 
 AM_CPPFLAGS += -I $(OVS_SRCDIR)/include
 AM_CPPFLAGS += -I $(OVS_BUILDDIR)/include
@@ -43,8 +45,6 @@ AM_CPPFLAGS += -I $(OVS_SRCDIR)/lib
 AM_CPPFLAGS += -I $(OVS_BUILDDIR)/lib
 AM_CPPFLAGS += -I $(OVS_SRCDIR)
 AM_CPPFLAGS += -I $(OVS_BUILDDIR)
-AM_CPPFLAGS += -I $(top_srcdir)/lib
-AM_CPPFLAGS += -I $(top_builddir)/lib
 
 AM_CPPFLAGS += $(SSL_INCLUDES)
 
-- 
2.26.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to