summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-09-24 07:49:34 +0200
committerThomas Haller <thaller@redhat.com>2014-09-24 16:00:31 +0200
commitd6f761bc4e6bdf2369d07ca3c9ee6626fdba3631 (patch)
tree91abb67c3c9b0c9a24d5a0210124c576d3412c64 /src
parent1e3f316081588cd7c25a54c1321571e29cfd806c (diff)
downloadlibnl-d6f761bc4e6bdf2369d07ca3c9ee6626fdba3631.tar.gz
build: move copy of linux headers to private directory
libnl3 contains a private copy of some kernel header files. Normally, users are expected to install libnl and specify -I$PREFIX/include/libnl3 as include path. As the private kernel header files are not installed, this works fine. However, it can be convenient to build against the libnl source directory, without installing libnl. In this case, the private kernel header files shaddow the system provided ones. This is undesired. Move these files to a different directory to avoid this clash. http://lists.infradead.org/pipermail/libnl/2014-September/001645.html Signed-off-by: Thomas Haller <thaller@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/lib/Makefile.am1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ea4bf458..624046f2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,6 +3,7 @@
SUBDIRS = lib
AM_CPPFLAGS = \
+ -I${top_srcdir}/include/linux-private \
-I${top_srcdir}/include \
-I${top_builddir}/include \
-D_GNU_SOURCE \
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 4b9b4a9c..27c74fd7 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -1,6 +1,7 @@
# -*- Makefile -*-
AM_CPPFLAGS = \
+ -I${top_srcdir}/include/linux-private \
-I${top_srcdir}/include \
-I${top_builddir}/include \
-D_GNU_SOURCE \