summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro10
-rw-r--r--tools/rbspeex/Makefile5
2 files changed, 6 insertions, 9 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index b09bd19bab..d21731fb8c 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -29,12 +29,12 @@ RBBASE_DIR = $$replace(RBBASE_DIR,/rbutil/rbutilqt,)
29 29
30message("Rockbox Base dir: "$$RBBASE_DIR) 30message("Rockbox Base dir: "$$RBBASE_DIR)
31 31
32# check for system speex. Add a custom rule for pre-building librbspeex if not found. 32# check for system speex. Add a custom rule for pre-building librbspeex if not
33LIBSPEEX = $$system(pkg-config --silence-errors --libs speex) 33# found. Newer versions of speex are split up into libspeex and libspeexdsp,
34# and some distributions package them separately. Check for both and fall back
35# to librbspeex if not found.
36LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp)
34!static:!isEmpty(LIBSPEEX) { 37!static:!isEmpty(LIBSPEEX) {
35 # newer versions of speex are split up into libspeex and libspeexdsp.
36 # avoid checking twice if libspeex is missing.
37 LIBSPEEX += $$system(pkg-config --silence-errors --libs speexdsp)
38 LIBS += $$LIBSPEEX 38 LIBS += $$LIBSPEEX
39} 39}
40# custom rules for rockbox-specific libs 40# custom rules for rockbox-specific libs
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index 6385c8a869..780fff2472 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -29,10 +29,7 @@ endif
29 29
30# don't try to use the systems libspeex when building a static binary. 30# don't try to use the systems libspeex when building a static binary.
31ifndef STATIC 31ifndef STATIC
32SYS_SPEEX = $(shell pkg-config --silence-errors --libs speex) 32SYS_SPEEX = $(shell pkg-config --silence-errors --libs speex speexdsp)
33ifneq ($(SYS_SPEEX),)
34SYS_SPEEX += $(shell pkg-config --silence-errors --libs speexdsp)
35endif
36endif 33endif
37 34
38# fall back to our own librbspeex if no suitable found. 35# fall back to our own librbspeex if no suitable found.