diff options
| author | Florian Fainelli | 2017-04-02 19:16:03 +0000 |
|---|---|---|
| committer | Florian Fainelli | 2017-04-02 21:02:09 +0000 |
| commit | 828a72d6ff0a394b2757d8113387b398303048c0 (patch) | |
| tree | 5fe79f2b0962013be5ba39b34d67d2ca7fc1cefd | |
| parent | 11543475e322bf69bf102a4b8883cae7ad25f7b6 (diff) | |
| download | packages-828a72d6ff0a394b2757d8113387b398303048c0.tar.gz | |
squeezelite: Specify all libraries to link against
squeezelite needs to link against libvorbis and libogg, some external
toolchains may not be able to automatically pull these dependencies in,
resulting the such linking errors:
mipsel-linux-gnu-gcc main.o slimproto.o buffer.o stream.o utils.o
output.o output_alsa.o output_pa.o output_stdout.o output_pack.o
decode.o flac.o pcm.o mad.o vorbis.o faad.o
-L/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib
-L/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/lib
-L/home/florian/dev/toolchains/stbgcc-4.8-1.5/usr/lib
-L/home/florian/dev/toolchains/stbgcc-4.8-1.5/lib -znow -zrelro -lasound
-lpthread -lm -lrt -lasound -lpthread -lm -lrt -lFLAC -lmad
-lvorbisfile -lfaad -o squeezelite
/home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libvorbis.so.0, needed by
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libvorbisfile.so,
not found (try using -rpath or -rpath-link)
/home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libogg.so.0, needed by
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libvorbisfile.so,
not found (try using -rpath or -rpath-link)
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libvorbisfile.so:
undefined reference to `ogg_stream_reset'
collect2: error: ld returned 1 exit status
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
| -rw-r--r-- | sound/squeezelite/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/squeezelite/Makefile b/sound/squeezelite/Makefile index 6c1b489720..e3de6a952c 100644 --- a/sound/squeezelite/Makefile +++ b/sound/squeezelite/Makefile @@ -128,6 +128,7 @@ TARGET_LDFLAGS+= -lasound -lpthread -lm -lrt ifeq ($(BUILD_VARIANT),full) TARGET_CFLAGS+= -DLINKALL + TARGET_LDFLAGS+= -lvorbis -logg endif define Package/squeezelite/install |