From 8c7794d82b059d8e03b764c2b367db307554494b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 9 Jan 2015 20:30:34 +0100 Subject: [PATCH] cf-upgrade: Fix out of tree builds Building cfengine core out of the source tree fails with this error: Making all in cf-upgrade CC process.o ../../../../cf-upgrade/process.c:25:22: fatal error: platform.h: No such file or directory #include ^ compilation terminated. Makefile:513: recipe for target 'process.o' failed After adding the missing include path to CPPFLAGS, the build finishes successfully. Signed-off-by: Stefan Weil --- cf-upgrade/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-upgrade/Makefile.am b/cf-upgrade/Makefile.am index dbd00e93e9e..8ee26637e6c 100644 --- a/cf-upgrade/Makefile.am +++ b/cf-upgrade/Makefile.am @@ -25,7 +25,7 @@ sbin_PROGRAMS = cf-upgrade LIBS= # This tool should not link to anything AM_LDFLAGS= -AM_CPPFLAGS= +AM_CPPFLAGS=-I$(top_srcdir)/libutils # platform.h LDADD=../libcompat/libcompat.la