ソースを参照

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>
Nicolas Thill 9 年 前
コミット
1f3925de20
共有1 個のファイルを変更した22 個の追加0 個の削除を含む
  1. 22
    0
      utils/kmod/patches/001-fix_pkgconfig_file.patch

+ 22
- 0
utils/kmod/patches/001-fix_pkgconfig_file.patch ファイルの表示

@@ -0,0 +1,22 @@
1
+--- a/Makefile.am
2
++++ b/Makefile.am
3
+@@ -35,9 +35,6 @@ SED_PROCESS = \
4
+ 	-e 's,@zlib_LIBS\@,${zlib_LIBS},g' \
5
+ 	< $< > $@ || rm $@
6
+ 
7
+-%.pc: %.pc.in Makefile
8
+-	$(SED_PROCESS)
9
+-
10
+ LIBKMOD_CURRENT=4
11
+ LIBKMOD_REVISION=9
12
+ LIBKMOD_AGE=2
13
+--- a/configure.ac
14
++++ b/configure.ac
15
+@@ -221,6 +221,7 @@ AC_CONFIG_HEADERS(config.h)
16
+ AC_CONFIG_FILES([
17
+ 	Makefile
18
+ 	man/Makefile
19
++	libkmod/libkmod.pc
20
+ 	libkmod/docs/Makefile
21
+ 	libkmod/docs/version.xml
22
+ ])