diff options
author | Ralph Giles <giles@thaumas.net> | 2020-07-03 19:38:28 -0700 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2020-07-03 23:12:30 -0700 |
commit | 0657aee69dec8508a0011f47f3b69d7538e9d262 (patch) | |
tree | e6597151dc3515ea14235bb34846ef3f2e628ecf | |
parent | eb40ca5fbd0c60d8bd1fd33be07f02defc21e5d7 (diff) | |
download | libvorbis-git-0657aee69dec8508a0011f47f3b69d7538e9d262.tar.gz |
Add vorbis dependencies when building examples.v1.3.7
The decoder_example program calls floor() which requires
its own -lm on the link line to resolve the local reference.
It seems on most platforms this was shadowed by the transitive
dependency in the vorbis libraries, but it results in an
unddefined reference error on e.g. debian 10 mipsel.
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
-rw-r--r-- | examples/Makefile.am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index 58816350..63dc8985 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -13,19 +13,19 @@ AM_CPPFLAGS = -I$(top_srcdir)/include @OGG_CFLAGS@ #LDFLAGS = -all-static decoder_example_SOURCES = decoder_example.c -decoder_example_LDADD = $(top_builddir)/lib/libvorbis.la @OGG_LIBS@ +decoder_example_LDADD = $(top_builddir)/lib/libvorbis.la @VORBIS_LIBS@ @OGG_LIBS@ encoder_example_SOURCES = encoder_example.c -encoder_example_LDADD = $(top_builddir)/lib/libvorbisenc.la $(top_builddir)/lib/libvorbis.la @OGG_LIBS@ +encoder_example_LDADD = $(top_builddir)/lib/libvorbisenc.la $(top_builddir)/lib/libvorbis.la @VORBIS_LIBS@ @OGG_LIBS@ chaining_example_SOURCES = chaining_example.c -chaining_example_LDADD = $(top_builddir)/lib/libvorbisfile.la $(top_builddir)/lib/libvorbis.la @OGG_LIBS@ +chaining_example_LDADD = $(top_builddir)/lib/libvorbisfile.la $(top_builddir)/lib/libvorbis.la @VORBIS_LIBS@ @OGG_LIBS@ vorbisfile_example_SOURCES = vorbisfile_example.c -vorbisfile_example_LDADD = $(top_builddir)/lib/libvorbisfile.la $(top_builddir)/lib/libvorbis.la @OGG_LIBS@ +vorbisfile_example_LDADD = $(top_builddir)/lib/libvorbisfile.la $(top_builddir)/lib/libvorbis.la @VORBIS_LIBS@ @OGG_LIBS@ seeking_example_SOURCES = seeking_example.c -seeking_example_LDADD = $(top_builddir)/lib/libvorbisfile.la $(top_builddir)/lib/libvorbis.la @OGG_LIBS@ +seeking_example_LDADD = $(top_builddir)/lib/libvorbisfile.la $(top_builddir)/lib/libvorbis.la @VORBIS_LIBS@ @OGG_LIBS@ debug: $(MAKE) all CFLAGS="@DEBUG@" |