From 22ae4e762eb4a776992c9a8594be4d043f0f8e69 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 1 Jul 2015 13:50:58 -0400 Subject: build: Fix srcdir != builddir from git See https://github.com/cgwalters/build-api/blob/master/build-api.md Signed-off-by: Colin Walters Signed-off-by: Paul Moore (imported from commit 9b16b91c1293c3629529d288018415e309043daa) --- src/Makefile.am | 1 + tools/Makefile.am | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index d8fbd85..a14cefb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -51,6 +51,7 @@ arch_syscall_dump_SOURCES = arch-syscall-dump.c ${SOURCES_ARCH} arch_syscall_check_SOURCES = arch-syscall-check.c ${SOURCES_ARCH} libseccomp_la_SOURCES = ${SOURCES_GEN} ${SOURCES_ARCH} +libseccomp_la_CPPFLAGS = ${AM_CPPFLAGS} -I$(top_builddir)/include libseccomp_la_CFLAGS = ${AM_CFLAGS} ${CFLAGS} -fPIC -DPIC -fvisibility=hidden libseccomp_la_LDFLAGS = ${AM_LDFLAGS} ${LDFLAGS} \ -version-number ${VERSION_MAJOR}:${VERSION_MINOR}:${VERSION_MICRO} diff --git a/tools/Makefile.am b/tools/Makefile.am index 422b35d..b18dc9b 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -16,6 +16,8 @@ # along with this library; if not, see . # +AM_CPPFLAGS = -I$(top_builddir)/include + noinst_LTLIBRARIES = util.la util_la_SOURCES = util.c util.h bpf.h util_la_LDFLAGS = -module -- cgit v1.2.1