summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/rbutilqt.pro
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-21 22:17:11 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-22 19:20:48 +0200
commit1e12990ba9a08589f9c0e770fdc22d539878a650 (patch)
tree0daeb1f3af81eacf6a44eaf00de4b76f4056d6c2 /rbutil/rbutilqt/rbutilqt.pro
parent02c5dd364181ea40d2f9db01ab46a3733266513a (diff)
downloadrockbox-1e12990ba9a08589f9c0e770fdc22d539878a650.tar.gz
rockbox-1e12990ba9a08589f9c0e770fdc22d539878a650.zip
rbutil: Rename libbzip2.a to libbz2.a.
When cross compiling for Windows (at least mxe) links bz2, causing both our copy and the system one getting linked, resulting in symbol clashes. Make sure we use the same name as the system one, so the linker can pick one of both. Change-Id: I16213a20f48d4e192cd0b756931f9ccb449fd1c0
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro11
1 files changed, 5 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index b3516f796b..ced22b0628 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -93,12 +93,11 @@ extralibs.commands = $$SILENT \
93RBLIBS = rbspeex ipodpatcher sansapatcher mkamsboot mktccboot \ 93RBLIBS = rbspeex ipodpatcher sansapatcher mkamsboot mktccboot \
94 mkmpioboot chinachippatcher mkimxboot mks5lboot bspatch ucl \ 94 mkmpioboot chinachippatcher mkimxboot mks5lboot bspatch ucl \
95 rbtomcrypt 95 rbtomcrypt
96# NOTE: Linking bzip2 causes problems on Windows (Qt seems to export those 96# NOTE: Our copy of libbzip2 has to use the name "bz2" to match up with the
97# symbols as well, similar to what we have with zlib.) Only link that on 97# distro name. Otherwise cross compiling would end up linking two copies of
98# non-Windows for now. 98# bzip2 using different names, causing symbol clashes. Using the same name
99!win32 { 99# makes the compiler pick the one he likes.
100 RBLIBS += bzip2 100RBLIBS += bz2
101}
102!win32-msvc* { 101!win32-msvc* {
103 QMAKE_EXTRA_TARGETS += extralibs 102 QMAKE_EXTRA_TARGETS += extralibs
104 PRE_TARGETDEPS += extralibs 103 PRE_TARGETDEPS += extralibs