pkg-config: Only append -lm if necessary.
authorRalph Giles <giles@thaumas.net>
Fri, 12 Jun 2020 23:48:59 +0000 (16:48 -0700)
committerRalph Giles <giles@thaumas.net>
Sat, 13 Jun 2020 00:25:58 +0000 (17:25 -0700)
Some systems don't require a separate -lm to link with libc
math functions. The configure script checks for this, so
use the corresponding variable to set the dependent libraries
in vorbis.pc dynamically.

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
vorbis.pc.in

index 0eacf66..f5ca77d 100644 (file)
@@ -11,5 +11,5 @@ Version: @VERSION@
 Requires.private: ogg
 Conflicts:
 Libs: -L${libdir} -lvorbis 
-Libs.private: -lm
+Libs.private: @VORBIS_LIBS@
 Cflags: -I${includedir}