From 9946def79da50037c78f5068a4f38c22f4848c73 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Thu, 3 Mar 2011 19:31:26 +0000 Subject: [PATCH] Don't link libz explicitly on Windows. On Windows Qt already includes libz. Since the Qt SDK comes without a separate libz linking it explicitly fails. Also, if libz is installed via MinGW linking it explicitly will clash with the libz functions in Qt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29512 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/rbutilqt.pro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index ca7214989c..13667dd25b 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro @@ -116,7 +116,10 @@ INCLUDEPATH += $$RBBASE_DIR/rbutil/ipodpatcher $$RBBASE_DIR/rbutil/sansapatcher DEPENDPATH = $$INCLUDEPATH -LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lmktccboot -lmkmpioboot -lucl -lz +LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lmktccboot -lmkmpioboot -lucl +!win32 { + LIBS += -lz +} # Add a (possibly found) libspeex now, don't do this before -lrbspeex! !static:!isEmpty(LIBSPEEX) {