This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] config: Add pkgincludedir to Cflags
- From: Namhyung Kim <namhyung at gmail dot com>
- To: elfutils-devel at sourceware dot org
- Date: Fri, 8 Dec 2017 15:17:38 +0900
- Subject: [PATCH] config: Add pkgincludedir to Cflags
- Authentication-results: sourceware.org; auth=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=Zjc9d9DdPHAD2nuoCQU4RxhyEgdmHKHV68WFUI5ZzxA=; b=XVltIoA1AJukza+auX9JnfywHw/f3rMbplkDaEB5uH/mp3fozgbqbV39pfFtF9gui+ cdc1LITrxPOE/qxNKFr2NzgKHvcya9BbcWKf1ceBDSr2w8RszcJYfJn4RqY6oN7opo/p M9NtcKEO27qkvIskfsMGqT5wq5l73dXa6slOOi8z+OaiJKVNR4hJE561ngJA/0EH0e6n 36ZbvBgqpQsqpf1WSpT/RIzxjTPBnqUcFvttPaHXiGdOyUhYZIlnwTRPhNBc2g8BXSKV a+V8XbU3tYF1kKaLha8WlnJvKyAhtatMDEg53JGf3n9h+7SBmHuNqMUhBptd4FnUHNQe GF3g==
The libelf and libdw uses pkginclude_HEADERS but the pkg-config file
misses to have it the Cflags. This was a problem for libdw users since
it gave nothing to include, but one needs to add /usr/include/elfutils
directory to use the libdw.h header file.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
config/ChangeLog | 4 ++++
config/libdw.pc.in | 2 +-
config/libelf.pc.in | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/config/ChangeLog b/config/ChangeLog
index ae40cc07..be3f87fb 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2017-12-08 Namhyung Kim <namhyung@gmail.com>
+ * libelf.pc.in: Add pkgincludedir to Cflags.
+ * libdw.pc.in: Likewise
+
2017-11-02 Mark Wielaard <mark@klomp.org>
* elfutils.spec.in: Config files under /usr/lib/sysctl.d (_sysctldir)
diff --git a/config/libdw.pc.in b/config/libdw.pc.in
index 3fc283db..e2a083e9 100644
--- a/config/libdw.pc.in
+++ b/config/libdw.pc.in
@@ -9,7 +9,7 @@ Version: @VERSION@
URL: http://elfutils.org/
Libs: -L${libdir} -ldw
-Cflags: -I${includedir}
+Cflags: -I${includedir} -I${includedir}/elfutils
# We need the exact matching elfutils libelf version since internal data
# structures are used.
diff --git a/config/libelf.pc.in b/config/libelf.pc.in
index 48f3f021..5455577c 100644
--- a/config/libelf.pc.in
+++ b/config/libelf.pc.in
@@ -9,6 +9,6 @@ Version: @VERSION@
URL: http://elfutils.org/
Libs: -L${libdir} -lelf
-Cflags: -I${includedir}
+Cflags: -I${includedir} -I${includedir}/elfutils
Requires.private: zlib
--
2.15.1