summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro19
1 files changed, 11 insertions, 8 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index fc62e77241..0b03907a94 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -29,14 +29,6 @@ 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
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)
37!static:!isEmpty(LIBSPEEX) {
38 LIBS += $$LIBSPEEX
39}
40# custom rules for rockbox-specific libs 32# custom rules for rockbox-specific libs
41!mac { 33!mac {
42 RBLIBPOSTFIX = .a 34 RBLIBPOSTFIX = .a
@@ -187,6 +179,17 @@ DEPENDPATH = $$INCLUDEPATH
187 179
188LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lmktccboot -lucl 180LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lmktccboot -lucl
189 181
182# check for system speex. Add a custom rule for pre-building librbspeex if not
183# found. Newer versions of speex are split up into libspeex and libspeexdsp,
184# and some distributions package them separately. Check for both and fall back
185# to librbspeex if not found.
186# NOTE: keep this after -lrbspeex, otherwise linker errors occur if the linker
187# defaults to --as-needed (see http://www.gentoo.org/proj/en/qa/asneeded.xml)
188LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp)
189!static:!isEmpty(LIBSPEEX) {
190 LIBS += $$LIBSPEEX
191}
192
190TEMPLATE = app 193TEMPLATE = app
191dbg { 194dbg {
192 CONFIG += debug thread qt warn_on 195 CONFIG += debug thread qt warn_on