Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2012-09-17 10:09:21 +0400
committerRalph Giles <giles@thaumas.net>2012-09-17 10:31:28 +0400
commitd47ddfb4724553533cf7bd2758b339329b483622 (patch)
tree1852f72876060bcfc54ff9c8fec2a547cf088ec9 /opus.pc.in
parenta66642a5e12554b0a2bec7f3679300524e6cbf14 (diff)
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.pc.in')
-rw-r--r--opus.pc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/opus.pc.in b/opus.pc.in
index 4e25e0bd..58e2247d 100644
--- a/opus.pc.in
+++ b/opus.pc.in
@@ -6,10 +6,10 @@ libdir=@libdir@
includedir=@includedir@
Name: Opus
-Description: Opus IETF audio codec
+Description: Opus IETF audio codec (@PC_BUILD@ build)
URL: http://opus-codec.org/
Version: @VERSION@
Requires:
Conflicts:
-Libs: -L${libdir} -lopus
+Libs: -L${libdir} -lopus @PC_LIBM@
Cflags: -I${includedir}/opus