From 888bbe38a50a1e3224dcef68686a00e2754e8b47 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 9 May 2014 06:05:00 +0700 Subject: Add python as a pkg-config dependency The current libsigrokdecode build passes the python CPPFLAGS and LDFLAGS directly into libsigrokdecode.pc.in. This leads to issues while cross-compiling as while using PKG_CONFIG_SYSROOT_DIR, there is a chance of the prefix being duplicated. We now, while detecting the installation of python (cross or normal), add a dependency for the module name in the pkgconfig file (from configure.ac). --- libsigrokdecode.pc.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libsigrokdecode.pc.in') diff --git a/libsigrokdecode.pc.in b/libsigrokdecode.pc.in index b180f27..6c415d7 100644 --- a/libsigrokdecode.pc.in +++ b/libsigrokdecode.pc.in @@ -6,10 +6,10 @@ includedir=@includedir@ Name: libsigrokdecode Description: Protocol decoder library of the sigrok logic analyzer software URL: http://www.sigrok.org -Requires: +Requires: @MODNAME_PYTHON@ Requires.private: glib-2.0 Version: @VERSION@ Libs: -L${libdir} -lsigrokdecode -Libs.private: @LDFLAGS_PYTHON@ -Cflags: -I${includedir} @CPPFLAGS_PYTHON@ +Libs.private: +Cflags: -I${includedir} -- cgit v1.2.3-70-g09d2