Skip to content
Snippets Groups Projects
  1. Jul 01, 2013
    • Ron's avatar
      Get rid of PC_LIBM · f92286b3
      Ron authored
      It only existed to not include -lm in the .pc for fixed point builds,
      but that is still needed since the float API is still enabled and
      will use at least lrint.
      f92286b3
  2. Sep 19, 2012
    • Ron's avatar
      Just fix opus-uninstalled.pc instead of tweaking the build dir · ff16ab09
      Ron authored
      Doing it this way means it's only the weird corner case that actually
      pays for being weird, and we don't litter the build dir with an extra
      link that normal builds really don't need at all.
      
      It also avoids the problem of platforms where LN_S isn't well defined.
      ff16ab09
  3. Sep 17, 2012
    • Ralph Giles's avatar
      Add -lm to the pkg-config link line. · d47ddfb4
      Ralph Giles authored
      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.
      d47ddfb4
    • Ralph Giles's avatar
      cf6284a1
  4. May 30, 2012
    • Ralph Giles's avatar
      Advertise the static library for uninstalled builds. · d8f1c709
      Ralph Giles authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      It's less surprising for people using the -uninstalled
      pkg-config file if we advertise the static library rather
      than the shared build. That way the executables work without
      having to hack the same location into LD_LIBRARY_PATH, and
      the resulting binaries are easier to distribute.
      
      For this to actually work with opus-tools, the -fPIE had
      to be turned off, as it was in 1d128b4d5c6f. Support
      for static PIE builds would be restored if we compiled
      libopus.a with -fPIC.
      
      Also remove the private header locations. These are no
      longer required to declare any of the public api.
      d8f1c709
  5. May 29, 2012
  6. Sep 14, 2011
  7. Aug 28, 2011
    • Ralph Giles's avatar
      Add pkg-config support files. · 9f71309a
      Ralph Giles authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      These files allow compiling and linking against the reference
      implementation with an invocation like `pkg-config --cflags
      --libs opus`. They're optional within the opus build system,
      but can simplify compilation for clients and are generally
      considered part of a normal autotools build these days.
      
      The -uninstalled version refers to local build products
      within the tree, which is helpful for testing and unprivileged
      builds. opus.pc is used once 'make install' has put the
      libraries and headers somewhere more permanent.
      9f71309a
Loading