[MacPorts] #31611: qt4-mac @4.7.4_0+debug+quartz fails to leave debug symbols in the resulting shared libraries
MacPorts
noreply at macports.org
Sat Oct 15 01:33:48 PDT 2011
#31611: qt4-mac @4.7.4_0+debug+quartz fails to leave debug symbols in the resulting
shared libraries
----------------------------------+-----------------------------------------
Reporter: kierans777@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: qt4 debug | Port: qt4-mac +debug
----------------------------------+-----------------------------------------
OSX 10.6.7
XCode 4.0 Build 4A304a
The compiler used was /Developer/usr/bin/llvm-g++-4.2
I noticed when debugging a segfault, even though my binary was linked to
the Qt_debug libraries no line numbers or other symbols were available.
My investigation found that no -g flags were passed to the Makefile.Debug
LFLAGS, thus when the shared library was built the symbols disappeared.
I added the flags (-g -gdwarf-2 like what was in CXXFLAGS) and rebuilt Qt
and retried my gdb session. I got symbols, line numbers, code listings,
etc.
This problem was first posted to the mailing list
(http://lists.macosforge.org/pipermail/macports-
users/2011-October/025840.html)
--
Ticket URL: <https://trac.macports.org/ticket/31611>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list