summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-06-02 09:37:06 -0400
committerPaul Moore <pmoore@redhat.com>2015-06-12 11:39:47 -0400
commit9b16b91c1293c3629529d288018415e309043daa (patch)
treecacf852940a8e3b01bb17b208a1c6ad9fcd17792
parent37a609498a218c370e86d34470a21d0d98db3b4f (diff)
downloadlibseccomp-9b16b91c1293c3629529d288018415e309043daa.tar.gz
build: Fix srcdir != builddir from git
See https://github.com/cgwalters/build-api/blob/master/build-api.md Signed-off-by: Colin Walters <walters@verbum.org> Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r--src/Makefile.am1
-rw-r--r--tools/Makefile.am2
2 files changed, 3 insertions, 0 deletions
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 <http://www.gnu.org/licenses>.
#
+AM_CPPFLAGS = -I$(top_builddir)/include
+
noinst_LTLIBRARIES = util.la
util_la_SOURCES = util.c util.h bpf.h
util_la_LDFLAGS = -module