Thank you very much
Markus
----- Original Message -----
From: "Will Fiveash" <william.five...@sun.com>
To: "Markus Moeller" <hua...@moeller.plus.com>;
<tools-discuss@opensolaris.org>
Sent: Monday, October 26, 2009 7:34 PM
Subject: Re: [tools-discuss] [tools-linking] Building debug libraries
On Mon, Oct 26, 2009 at 01:38:26PM -0500, Will Fiveash wrote:
Yeah, I've seen that too when trying to compile libnsl with those
compile settings. I'm going to open a bug against ctfconvert. See:
6895284 ctfconvert failing for certain libs when
DEBUGFORMAT="-xdebugformat=dwarf" set
Here is a shell script wrapper I call dbgmake that should allow you to
build libldap using dwarf debug format (it works for both user and kernel
space binaries in the OpenSolaris source repo):
==================== start
=====================================================
#!/bin/ksh -p
MAKE=${MAKE:-dmake}
# XXX the XFFLAG='' is a compiler bug work around
if [[ $PWD != */usr/src/uts/* ]]
then
# Userspace binaries
# krb binaries take additional debug args
if [[ $PWD == *krb5* ]]
then
bldargs="CTFCONVERT_O='' CTFMERGE_LIB='' COPTFLAG='-g -DDEBUG'
COPTFLAG64='-g -DDEBUG' STRIPSTABS_KEEP_STABS='1'
DEBUGFORMAT='-xdebugformat=dwarf' XFFLAG='' sparc_C_PICFLAGS='-K PIC'
KRB5_DEFS='-DDEBUG -DKRB5_LOG_LVL=3'"
else
bldargs="CTFCONVERT_O='' CTFMERGE_LIB='' COPTFLAG='-g'
COPTFLAG64='-g' STRIPSTABS_KEEP_STABS='1'
DEBUGFORMAT='-xdebugformat=dwarf' XFFLAG='' sparc_C_PICFLAGS='-K PIC'"
fi
else
# Kernel binaries
# krb binaries take additional debug args
if [[ $PWD == *krb5* ]]
then
bldargs='COPTFLAG="-g" COPTFLAG64="-g" STRIPSTABS_KEEP_STABS="1"
XFFLAG="" sparc_C_PICFLAGS="-K PIC" KRB5_DEFS="-DDEBUG -DKRB5_LOG_LVL=3"'
else
bldargs='COPTFLAG="-g" COPTFLAG64="-g" STRIPSTABS_KEEP_STABS="1"
XFFLAG="" sparc_C_PICFLAGS="-K PIC"'
fi
fi
eval $bldargs $MAKE "$@"
==================== end
=====================================================
--
Will Fiveash
Sun Microsystems Inc.
http://opensolaris.org/os/project/kerberos/
Sent from mutt, a sweet ASCII MUA
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org