diff options
author | Ashish Kulkarni <kulkarni.ashish@gmail.com> | 2014-12-21 06:36:24 +0530 |
---|---|---|
committer | Ashish Kulkarni <kulkarni.ashish@gmail.com> | 2015-01-08 09:31:49 +0100 |
commit | da6a706eb31f1505edfaeefefc1adfb65ea6d893 (patch) | |
tree | 07801286c4b9170a238d54b7be80489b048370ad /src/3rdparty | |
parent | 72bc032ca8f7fc00900a9ca20bab8560ccf99727 (diff) |
fix error when cross-compiling with --system-zlib
This is broken since 1f461ac45bfa8887261510a95fb33a346d68eaba, where
Z_PREFIX was defined to namespace the bundled zlib symbols. The
bundled zlib is used by bootstrap.pro when cross-compiling which uses
the namespaced symbols. This breaks linking of rcc when --system-zlib
is used, as it will try to link to compress2 instead of z_compress2.
To fix this, the aliases are pulled in via zconf.h and the bundled
zlib is prepended to the INCLUDEPATH (i.e. before the system zlib).
Change-Id: Iec76cbdead40f888e2ac6a887ec8f3b7bc7db501
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/zlib.pri | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/zlib.pri b/src/3rdparty/zlib.pri index a7073d5c3a..868d1c71bb 100644 --- a/src/3rdparty/zlib.pri +++ b/src/3rdparty/zlib.pri @@ -1,5 +1,5 @@ wince*: DEFINES += NO_ERRNO_H -INCLUDEPATH += $$PWD/zlib +INCLUDEPATH = $$PWD/zlib $$INCLUDEPATH SOURCES+= \ $$PWD/zlib/adler32.c \ $$PWD/zlib/compress.c \ |