How to build qt charts with profile option in mingw64?
-
I want to build qt charts with profile options in mingw64 to analyze some performance issues.
In mingw64, the available profile tool I know is gprof. For gprof to work, the code needs to be compiled with
-pg -no-pie
, and cannot be linked dynamically.I've cloned code from https://code.qt.io/qt/qtcharts.git and found the default build option creates a shared library. The chart library is added via cmake function
qt_internal_add_module
. How can I build qt charts as a static library, with compile option-pg -no-pie
? Thanks for any help.