POV-Ray : Newsgroups : povray.unix : compiling 3.5 with debug info ? : Re: compiling 3.5 with debug info ? Server Time
8 Jul 2024 18:26:10 EDT (-0400)
  Re: compiling 3.5 with debug info ?  
From: Spider
Date: 28 Jul 2003 21:02:20
Message: <pan.2003.07.29.01.02.43.643976@gentoo.org>
>> what does ./configure --help say? there is probably an option
>> --enable-debug=yes for configure.
>> 
>     Yes, I've just try it now.
>     No debug flag :)
> 
> c++ -DPREFIX=\"/usr/local\" 
> -DPOV_LIB_DIR=\"/usr/local/share/povray-3.5\" 
> -DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/usr/local/etc\" 
> -DUSE_IO_RESTRICTIONS=\"\"     `if [ "Xgcc" = "Xgcc" ]; then echo 
> "-Wno-multichar"; fi ` -O3 -finline-functions -ffast-math 
> -fomit-frame-pointer -funroll-loops -fexpensive-optimizations 
> -malign-double -foptimize-sibling-calls -minline-all-stringops 
> -Wno-multichar -c bezier.cpp
> 

First: 
be aware that -fomit-frame-pointer invalidates debugging (makes it
impossible in fact) on x86  

Also, I'd suggest you use :
CFLAGS="-march=i686 -g -O3"  CXXFLAGS="${CFLAGS} ./configure
on a clean set of sources, a check inside the config.log should show that
it compiles the test-programs with the right flags. Of course, the
-march=i686 is just a recommendation (take your normal ones here)

also, make sure you don't strip the binary.


//Spider


-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.