diff options
author | Ralph Giles <giles@thaumas.net> | 2012-09-17 10:09:21 +0400 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2012-09-17 10:31:28 +0400 |
commit | d47ddfb4724553533cf7bd2758b339329b483622 (patch) | |
tree | 1852f72876060bcfc54ff9c8fec2a547cf088ec9 /opus.pc.in | |
parent | a66642a5e12554b0a2bec7f3679300524e6cbf14 (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.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |