Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5, 6.6
-
None
-
-
9d8a04cd1 (dev), f11418877 (6.5), a5a64671c (6.6)
Description
When doing a Release build, the generated .so files are 10 times bigger because they contain debug information. One needs to strip debug info from them manually to have a small library.
Release builds should behave as their name suggest: producing releasable binaries without debug information.
This is the general configuration which comes up in QtAA builds:
-DCMAKE_CXX_FLAGS=-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-DCMAKE_CXX_FLAGS_DEBUG=-fno-limit-debug-info
-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
As it can be seen above, some part of the build system sets the -g flag globally to all build types. This happens by default without any special flags as well.
Attachments
Issue Links
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-111901 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
483451,1 | Remove debug symbols from Android's release build | 6.6 | qt/qtbase | Status: NEW | 0 | 0 |
483457,1 | Remove debug symbols from Android's release build | 6.6 | qt/qtbase | Status: NEW | 0 | 0 |
483463,1 | Remove debug symbols from Android's release build | 6.6 | qt/qtbase | Status: NEW | 0 | 0 |
483469,1 | Remove debug symbols from Android's release build | 6.6 | qt/qtbase | Status: NEW | 0 | 0 |