diff options
author | Colin Walters <walters@verbum.org> | 2015-07-01 13:50:58 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-07-01 13:50:58 -0400 |
commit | 22ae4e762eb4a776992c9a8594be4d043f0f8e69 (patch) | |
tree | 4c2992a24f46bb3aeefaf222e433d420a4150a4d | |
parent | 77b18477a4a26ae82fed15c0a1f6150709770b40 (diff) | |
download | libseccomp-22ae4e762eb4a776992c9a8594be4d043f0f8e69.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>
(imported from commit 9b16b91c1293c3629529d288018415e309043daa)
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | tools/Makefile.am | 2 |
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 |