kmod: fix pkgconfig file

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.

Signed-off-by: Nicolas Thill <nico@openwrt.org>
This commit is contained in:
Nicolas Thill 2015-03-09 03:38:58 +01:00
parent 3879265ffd
commit 1f3925de20
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,9 +35,6 @@ SED_PROCESS = \
-e 's,@zlib_LIBS\@,${zlib_LIBS},g' \
< $< > $@ || rm $@
-%.pc: %.pc.in Makefile
- $(SED_PROCESS)
-
LIBKMOD_CURRENT=4
LIBKMOD_REVISION=9
LIBKMOD_AGE=2
--- a/configure.ac
+++ b/configure.ac
@@ -221,6 +221,7 @@ AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([
Makefile
man/Makefile
+ libkmod/libkmod.pc
libkmod/docs/Makefile
libkmod/docs/version.xml
])