From a4020b3621c81edaf846d18eb75c61fbe8e98691 Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Wed, 13 Jan 2016 23:06:05 -0600 Subject: Avoid overlinking of libexif The dependency on libexif need not be exposed to consumers of this library. This is fixed by moving libexif from Requires to Requires.private in the pkg-config files. --- libgphoto2-uninstalled.pc.in | 3 ++- libgphoto2.pc.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libgphoto2-uninstalled.pc.in b/libgphoto2-uninstalled.pc.in index b7921df37..c90d7177b 100644 --- a/libgphoto2-uninstalled.pc.in +++ b/libgphoto2-uninstalled.pc.in @@ -16,7 +16,8 @@ Name: libgphoto2 Description: Library for easy access to digital cameras URL: http://gphoto.org/proj/libgphoto2/ Version: ${VERSION} -Requires: libgphoto2_port >= 0.7.2, @REQUIREMENTS_FOR_LIBEXIF@ +Requires: libgphoto2_port >= 0.7.2 +Requires.private: @REQUIREMENTS_FOR_LIBEXIF@ # This is what works for gphoto-suite Libs: ${pcfiledir}/libgphoto2/libgphoto2.la -lm Cflags: -I${pcfiledir}/@srcdir@ diff --git a/libgphoto2.pc.in b/libgphoto2.pc.in index 87bd5806f..8a70c571a 100644 --- a/libgphoto2.pc.in +++ b/libgphoto2.pc.in @@ -9,6 +9,7 @@ Name: libgphoto2 Description: Library for easy access to digital cameras URL: http://gphoto.org/proj/libgphoto2/ Version: @VERSION@ -Requires: libgphoto2_port >= 0.10.0 @REQUIREMENTS_FOR_LIBEXIF@ +Requires: libgphoto2_port >= 0.10.0 +Requires.private: @REQUIREMENTS_FOR_LIBEXIF@ Libs: -L${libdir} -lgphoto2 -lm Cflags: -I${includedir}/gphoto2 -- cgit v1.2.1