summaryrefslogtreecommitdiff
path: root/opus-uninstalled.pc.in
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2012-09-16 23:09:21 -0700
committerRalph Giles <giles@thaumas.net>2012-09-16 23:31:28 -0700
commitd47ddfb4724553533cf7bd2758b339329b483622 (patch)
tree1852f72876060bcfc54ff9c8fec2a547cf088ec9 /opus-uninstalled.pc.in
parenta66642a5e12554b0a2bec7f3679300524e6cbf14 (diff)
downloadopus-d47ddfb4724553533cf7bd2758b339329b483622.tar.gz
Add -lm to the pkg-config link line.
The floating-point build calls a number of math library functions, and linking with libm is technically necessary. It wasn't obvious because most systems support shlib dependencies and pulled it in that way, or supply the referenced functions with intrinsics. Discovered the issue trying to build libopusfile against the uninstalled static libopus, which unlike opus-tools, doesn't itself need libm. The -lm argument is only added to Libs for the floating- point (default) build. It's not necessary for the fixed- point build. Also mark which build was used in the .pc file description.
Diffstat (limited to 'opus-uninstalled.pc.in')
-rw-r--r--opus-uninstalled.pc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/opus-uninstalled.pc.in b/opus-uninstalled.pc.in
index deb6719f..b26b208c 100644
--- a/opus-uninstalled.pc.in
+++ b/opus-uninstalled.pc.in
@@ -4,9 +4,9 @@ libdir=${pcfiledir}/.libs
includedir=${pcfiledir}
Name: opus uninstalled
-Description: Opus IETF audio codec (not installed)
+Description: Opus IETF audio codec (not installed, @PC_BUILD@)
Version: @VERSION@
Requires:
Conflicts:
-Libs: ${libdir}/libopus.a
+Libs: ${libdir}/libopus.a @PC_LIBM@
Cflags: -I${includedir}/include