]> granicus.if.org Git - libvpx/commitdiff
Fix pkg-config file to pull in libm
authorRob Bradford <rob@linux.intel.com>
Mon, 28 May 2012 12:00:24 +0000 (13:00 +0100)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 15 Jun 2012 23:37:33 +0000 (16:37 -0700)
vpx uses symbols in libm and thus we need to provide an indication to
the user of libvpx that if they want to link against libvpx they must
also link against libm.

Change-Id: I31d4068bf7f6f5b1fd222bcdf9e6a1a92fb6696f

libs.mk

diff --git a/libs.mk b/libs.mk
index 48698715958bfe06dc64053bf1c98e78a1cfec98..1f4ffa29874600bfe88e9c5fed8cda4461932922 100644 (file)
--- a/libs.mk
+++ b/libs.mk
@@ -242,7 +242,7 @@ vpx.pc: config.mk libs.mk
        $(qexec)echo 'Version: $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)' >> $@
        $(qexec)echo 'Requires:' >> $@
        $(qexec)echo 'Conflicts:' >> $@
-       $(qexec)echo 'Libs: -L$${libdir} -lvpx' >> $@
+       $(qexec)echo 'Libs: -L$${libdir} -lvpx -lm' >> $@
        $(qexec)echo 'Cflags: -I$${includedir}' >> $@
 INSTALL-LIBS-yes += $(LIBSUBDIR)/pkgconfig/vpx.pc
 INSTALL_MAPS += $(LIBSUBDIR)/pkgconfig/%.pc %.pc