From a63ea5b24a377b04e58393ceb9a2fa44cab88b39 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sun, 17 Jul 2011 16:34:53 +0200 Subject: [PATCH] Generate Libs.private fields in pkgconfig files from already defined Makefile variables Signed-off-by: Gregor Jasny Signed-off-by: Hans de Goede --- lib/libv4l1/Makefile | 2 +- lib/libv4l2/Makefile | 2 +- lib/libv4lconvert/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libv4l1/Makefile b/lib/libv4l1/Makefile index 3737ce2..c9ad219 100644 --- a/lib/libv4l1/Makefile +++ b/lib/libv4l1/Makefile @@ -35,7 +35,7 @@ libv4l1.pc: @echo 'Version: '$(V4L_UTILS_VERSION) >> libv4l1.pc @echo 'Requires.private: libv4l2' >> libv4l1.pc @echo 'Libs: -L$${libdir} -lv4l1' >> libv4l1.pc - @echo 'Libs.private: -lpthread' >> libv4l1.pc + @echo 'Libs.private: '$(LIBS_libv4l1) >> libv4l1.pc @echo 'Cflags: -I$${prefix}/include' >> libv4l1.pc install: all diff --git a/lib/libv4l2/Makefile b/lib/libv4l2/Makefile index d78632f..a311593 100644 --- a/lib/libv4l2/Makefile +++ b/lib/libv4l2/Makefile @@ -35,7 +35,7 @@ libv4l2.pc: @echo 'Version: '$(V4L_UTILS_VERSION) >> libv4l2.pc @echo 'Requires.private: libv4lconvert' >> libv4l2.pc @echo 'Libs: -L$${libdir} -lv4l2' >> libv4l2.pc - @echo 'Libs.private: -lpthread' >> libv4l2.pc + @echo 'Libs.private: '$(LIBS_libv4l2) >> libv4l2.pc @echo 'Cflags: -I$${prefix}/include' >> libv4l2.pc install: all diff --git a/lib/libv4lconvert/Makefile b/lib/libv4lconvert/Makefile index 1376c21..518ee8e 100644 --- a/lib/libv4lconvert/Makefile +++ b/lib/libv4lconvert/Makefile @@ -35,7 +35,7 @@ libv4lconvert.pc: @echo 'Description: v4l format conversion library' >> libv4lconvert.pc @echo 'Version: '$(V4L_UTILS_VERSION) >> libv4lconvert.pc @echo 'Libs: -L$${libdir} -lv4lconvert' >> libv4lconvert.pc - @echo 'Libs.private: -lrt -lm' >> libv4lconvert.pc + @echo 'Libs.private: '$(LIBS_libv4lconvert) >> libv4lconvert.pc @echo 'Cflags: -I$${prefix}/include' >> libv4lconvert.pc install: all -- 2.7.4