linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Waugh <jdub@bethesignal.org>
To: linux-modules@vger.kernel.org
Subject: [PATCH] build: generate libkmod.pc during autoconf
Date: Fri, 6 Mar 2015 08:05:47 +1100	[thread overview]
Message-ID: <20150305210547.GA24297@ubuntu> (raw)

The pkgconfig file is generated at make-time, leading to absolute /usr/include
& /usr/lib search paths. The patch lets autoconf handle pkgconfig file subst,
like other packages do. (Patch from OpenWrt's contributed packages project.)

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Signed-off-by: Jeff Waugh <jdub@bethesignal.org>
---
 Makefile.am  | 3 ---
 configure.ac | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index caf18b6..32aea73 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -36,9 +36,6 @@ SED_PROCESS = \
 	-e 's,@zlib_LIBS\@,${zlib_LIBS},g' \
 	< $< > $@ || rm $@
 
-%.pc: %.pc.in Makefile
-	$(SED_PROCESS)
-
 LIBKMOD_CURRENT=4
 LIBKMOD_REVISION=10
 LIBKMOD_AGE=2
diff --git a/configure.ac b/configure.ac
index be597b4..8500cad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -250,6 +250,7 @@ AC_SUBST([OUR_LDFLAGS], $with_ldflags)
 AC_CONFIG_FILES([
 	Makefile
 	man/Makefile
+	libkmod/libkmod.pc
 	libkmod/docs/Makefile
 	libkmod/docs/version.xml
 ])
-- 
1.9.1


             reply	other threads:[~2015-03-10 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 21:05 Jeff Waugh [this message]
2015-03-10 17:04 ` [PATCH] build: generate libkmod.pc during autoconf Lucas De Marchi
2015-03-11  0:26   ` Jeff Waugh
2015-03-11  0:30   ` Jeff Waugh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150305210547.GA24297@ubuntu \
    --to=jdub@bethesignal.org \
    --cc=linux-modules@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).