[PATCH] build: generate libkmod.pc during autoconf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
Signed-off-by: Jeff Waugh <jdub@xxxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux