Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.12
-
None
-
Linux ubuntu 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.21
clang version 6.0.1 (emscripten 1.38.21 : 1.38.21)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0Linux ubuntu 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.21 clang version 6.0.1 (emscripten 1.38.21 : 1.38.21) Target: x86_64-unknown-linux-gnu Thread model: posix Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Description
To use Emscripten Ports as system libraries for zlib, libpng, freetype,... one has to pass corresponding flags at compile time (see https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports).
Configure is setting the right flags for link step but config.test fails due to not include those falgs in compile step.
Originally those flags where added to QMAKE_CXXFLAGS and QMAKE_CFLAGS in mkspecs/wasm-emscripten/qmake.conf but have been removed witch patch http://code.qt.io/cgit/qt/qtbase.git/commit/mkspecs/wasm-emscripten/qmake.conf?id=eea08d376ac5cb35ff03be630923f21f7fa3aecd&h=5.12