diff options
author | Mark Wielaard <mjw@redhat.com> | 2016-01-04 21:41:52 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-01-05 16:18:37 +0100 |
commit | 0aa60ac643cea053d03a2de2ed7757d907b5e7bb (patch) | |
tree | d78383c4e21461fd75702f667e283b0aefc21efe /config | |
parent | 77e1739fc53c4021f6172955b73b2dce252d0709 (diff) |
config: Add libelf and libdw pkg-config files.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 10 | ||||
-rw-r--r-- | config/Makefile.am | 6 | ||||
-rw-r--r-- | config/elfutils.spec.in | 2 | ||||
-rw-r--r-- | config/libdw.pc.in | 22 | ||||
-rw-r--r-- | config/libelf.pc.in | 14 |
5 files changed, 53 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 428162fe..baa43030 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,13 @@ +2016-01-04 Mark Wielaard <mjw@redhat.com> + + * libelf.pc.in: New file. + * libdw.pc.in: Likewise. + * Makefile.am (EXTRA_DIST): Add libelf.pc.in and libdw.pc.in. + (pkgconfigdir): New variable. + (pkgconfigdir_DATA): Likewise. + * elfutils.spec.in (files devel): Add libdw.pc. + (files libelf-devel): Add libelf.pc. + 2015-10-15 Mark Wielaard <mjw@redhat.com> * elfutils.spec.in: Update for 0.164. diff --git a/config/Makefile.am b/config/Makefile.am index 23f7b655..66012d02 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in -*-Makefile-*- ## Configure input file for elfutils. ## -## Copyright (C) 2004, 2005, 2008, 2009, 2011, 2015 Red Hat, Inc. +## Copyright (C) 2004, 2005, 2008, 2009, 2011, 2015, 2016 Red Hat, Inc. ## This file is part of elfutils. ## ## This file is free software; you can redistribute it and/or modify @@ -29,6 +29,10 @@ ## not, see <http://www.gnu.org/licenses/>. ## EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf + libelf.pc.in libdw.pc.in + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libelf.pc libdw.pc if MAINTAINER_MODE $(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in index b718f066..40b08bf1 100644 --- a/config/elfutils.spec.in +++ b/config/elfutils.spec.in @@ -197,6 +197,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libebl.a #%{_libdir}/libasm.so %{_libdir}/libdw.so +%{_libdir}/pkgconfig/libdw.pc %files devel-static %{_libdir}/libdw.a @@ -215,6 +216,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_includedir}/nlist.h %{_includedir}/elfutils/version.h %{_libdir}/libelf.so +%{_libdir}/pkgconfig/libelf.pc %files libelf-devel-static %{_libdir}/libelf.a diff --git a/config/libdw.pc.in b/config/libdw.pc.in new file mode 100644 index 00000000..b7dc0026 --- /dev/null +++ b/config/libdw.pc.in @@ -0,0 +1,22 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libdw +Description: elfutils library for DWARF data and ELF file or process inspection +Version: @VERSION@ +URL: https://fedorahosted.org/elfutils/ + +Libs: -L${libdir} -ldw +Cflags: -I${includedir} + +# We need the exact matching elfutils libelf version since internal data +# structures are used. +Requires: libelf = @VERSION@ + +# We support various compressed ELF images, but don't export any of the +# data structures or functions. zlib (gz) is always required, bzip2 (bz2) +# and lzma (xz) are optional. But bzip2 doesn't have a pkg-config file. +Requires.private: zlib @LIBLZMA@ +Libs.private: @BZ2_LIB@ diff --git a/config/libelf.pc.in b/config/libelf.pc.in new file mode 100644 index 00000000..1fc7e4cb --- /dev/null +++ b/config/libelf.pc.in @@ -0,0 +1,14 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libelf +Description: elfutils libelf library to read and write ELF files +Version: @VERSION@ +URL: https://fedorahosted.org/elfutils/ + +Libs: -L${libdir} -lelf +Cflags: -I${includedir} + +Requires.private: zlib |