On Sunday 27 November 2011 19:48:03 Darrell Anderson wrote:
With autotools I use --enable-debug=full.
How is this done with cmake ?
I built with -DCMAKE_BUILD_TYPE=Debug but there is no
difference in the
final package sizes.
Is there anything in the build log that lets me know
how I built a package?
Try -DCMAKE_CXX_FLAGS="-g"
I added that flag. Yet the package sizes are the same.
1. How do I know whether or not a package is built with debug support?
Run make VERBOSE=1 and check if -g parameter is passed to compiler.
2. Does the build log provide a clue?
See previous answer.
3. Should the package size be larger?
Yes, much larger. But ensure that binaries are not stripped at install stage
(you should not see "-s" parameter passed to linker). Use "file" to
check if
the binary is stripped or no.
4. Is there a simple test after installing the package
to test for
debugging support?
Dunno.
Please be verbose. :)
Darrell
--
Serghei