Commit Graph

9 Commits

Author SHA1 Message Date
Jean-Marc Valin
ff6532c3be
Making opus-uninstalled.pc use the .la instead of the .a
This makes it possible to link dynamically with an uninstalled libopus.
It does require the executable to use libtool however.
2017-12-19 15:17:10 -05:00
Ron
f92286b3da Get rid of PC_LIBM
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.
2013-07-02 02:35:53 +09:30
Ron
ff16ab098e Just fix opus-uninstalled.pc instead of tweaking the build dir
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.
2012-09-19 10:09:32 -07:00
Ralph Giles
d47ddfb472 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.
2012-09-16 23:31:28 -07:00
Ralph Giles
cf6284a18e Capitalize Opus in the pkg-config file comment header. 2012-09-16 22:40:37 -07:00
Ralph Giles
d8f1c7093c Advertise the static library for uninstalled builds.
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.
2012-05-30 14:19:01 -04:00
Timothy B. Terriberry
d09dc7c7a2 Fix opus-uninstalled.pc.
With these changes, opus-tools can actually build using it.
2012-05-28 23:44:42 -04:00
Jean-Marc Valin
c37499090b renames the libcelt/ directory to celt/ 2011-09-13 18:21:18 -07:00
Ralph Giles
9f71309abe Add pkg-config support files.
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.
2011-08-28 15:33:14 -04:00