Fix pkg-config files to avoid overlinking
authorUlrich Klauer <ulrich@chirlu.de>
Sat, 6 Apr 2013 18:41:12 +0000 (20:41 +0200)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 7 Apr 2013 01:03:52 +0000 (11:03 +1000)
commit5da86630bee2336e251f0a140f33332af703c43e
tree071d7d69b735fc19d3bc67ace720452825c56223
parent805ffdb6eb2465717c15187e67cfbc6ebb84f64b
Fix pkg-config files to avoid overlinking

Libraries that are used internally by libFLAC(++) but are not part of
their API should be listed in pkg-config "private" clauses. Otherwise
executables that are linked dynamically against libFLAC(++) will have
unneeded direct dependencies (overlinking).

Based on a patch by Brad Smith from
  https://sourceforge.net/p/flac/bugs/397/
that I updated to only include ogg if libFLAC is actually built with
ogg support.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
configure.ac
src/libFLAC++/flac++.pc.in
src/libFLAC/flac.pc.in