On Sat, Oct 3, 2009 at 2:09 AM, Dave Thompson
<dave.thomp...@princetonpayments.com> wrote:
> And apparently you don't have symbols in your executable;
> to debug you almost always need them. On Linux assuming gcc,
> I just shove -g in CFLAG in the top Makefile by hand, and
> to simplify debug I would also take out optimization options
> (-O3 -fomit-frame-pointer) if the problem occurs without them.
> There's probably a way to get Configure to do these officially,
> but for me it isn't worth the trouble of figuring out.

Tip: if you do this more than once or like to follow bleeding edge
like me: no need for hand-tweak stuff for -g and other advanced debug
options; either run

./config -d

every time you have fetched new sources and want to make sure the new
build will have symbols (-d --> makes sure OpenSSL makefiles are
configured for a 'debug' build; optimizations are out the door and
'-g' is in!)


Advanced tip: open ./Configure script, look for lines like
'steve-debug64' etc., there's a whole table of 'em, and copy&paste to
a line of your own in there, adding anything you like, then run

./Configure ger-debug64

(or whatever you called your 'platform'; I call mine 'ger-debug64').
Mind the uppercase 'C' there. Start, for instance, by mixing your
platform line in that table as reported by

./config -t

and mix&mash with good stuff from steve-debug* et al to roll your own
extra line in that table.


BTW: quickly browsing through that ./Configure table was quite
enlighting for me every time I needed extra stuff such as purify,
valgrind, etc. running in concert with a 'prepped' OpenSSL build like
you're probably going to need as well when this gets as hard as it
smells.

(I'm lazy and forgetful, so I end up with a couple of
./config4ger-purpose.sh two line shell scripts in that directory which
carry these command lines, once I've concocted some that satisfy me.)


PS: only thing to watch out for with the 'advanced tip' is that you
reckon with your own edit of ./Configure, so don't bluntly overwrite
that one on update from CVS/SVN from OpenSSL original.

-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   g...@hobbelt.com
mobile: +31-6-11 120 978
--------------------------------------------------
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to