[csw-maintainers] Debugging with Sun Studio and mGAR

Mike Watters mwatters at opencsw.org
Wed Jul 8 19:11:04 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maciej (Matchek) Blizinski wrote:
> On Wed, Jun 24, 2009 at 8:36 PM, Sebastian Kayser<skayser at opencsw.org> wrote:
>> I guess it doesn't fully cover your answer, but regarding GAR, you can set
>> GARFLAVOR to DBG if you want your binaries built with debugging symbols.
>> This will also skip the step where GAR strips all the binaries. See [1].
> 
> cups makefiles do honor CFLAGS, so GARFLAVOR = DBG, I can see that the
> flag -g is present in compiler invocations.
> 
> Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -I/usr/include/kerberosv5
> -I/export/home/blizinski/build.5.10-i386/opt/csw/include
> -I/opt/csw/include -I/usr/include/kerberosv5 -g
> -I/export/home/blizinski/build.5.10-i386/opt/csw/include
> -I/opt/csw/include  -DOPENSSL_DISABLE_OLD_DES_SUPPORT
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -I/usr/include/kerberosv5
> -I/export/home/blizinski/build.5.10-i386/opt/csw/include
> -I/opt/csw/include -g
> -I/export/home/blizinski/build.5.10-i386/opt/csw/include
> -I/opt/csw/include -DOPENSSL_DISABLE_OLD_DES_SUPPORT
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> Using LDFLAGS=-L../cups -L../filter
> -L/export/home/blizinski/build.5.10-i386/opt/csw/lib -L/opt/csw/lib
> -R/opt/csw/lib   -w -KPIC -xO2
                             ^^^
the -xO2 is the optimization flag here... remove it and you should remove the
optimization.

> Using LIBS=-lcups -lssl -lcrypto -lpthread -lresolv -lnsl -lsocket -lm



- --

Thanks,
Mike

"Any intelligent fool can make things bigger, more complex,
and more violent.  It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."

* Albert Einstein 1879 - 1955
    US German-born Theoretical Physicist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpU0ygACgkQLrhmsXMSLxeTbQCaAyUg6LtZinw//Q2UIJWSE/9M
LLkAn2fQ5razR8Pd9oRCYERfxdAFb/nf
=C1NP
-----END PGP SIGNATURE-----



More information about the maintainers mailing list