[ODE] Autotools added to UNSTABLE

Rodrigo Hernandez kwizatz at aeongames.com
Wed Apr 13 19:57:28 MST 2005


Tanguy Fautre wrote:

>
> I think I found the problem: only x11.o gets used to build 
> libdrawstuff.a:
>
>
Yes, looks like automake is not handling += assignments right, what is 
your automake version?
there seem to be no problems on 1.8.2 and higher, so you may want to 
update if your version is below that.

> Another thing, on Debian it seems that -lGL also requires -lpthread. 
> For the moment I'm just modifying makefile-unix-gcc to get it to work. 
> I dunno if this can be included in the CVS (both Makefile and 
> autotools), or if it will affect other Linux distro in a bad way.
>
I'll fix that.

>
> PS: it seems to me that the first arguments given to the linker are 
> completely useless, aren't they?
> -fomit-frame-pointer -ffast-math -g -O2 
> -I/home/tfautre/development/ode_unstable_cvs/ode/include 
> -fomit-frame-pointer -ffast-math -g -O2
>
Not really, what -g does is add debbuging information to the executable, 
but doesnt make the compiler generate unoptimized code, check here:

http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Debugging-Options.html#Debugging-Options

"Unlike most other C compilers, GCC allows you to use -g with -O. The 
shortcuts taken by optimized code may occasionally produce surprising 
results: some variables you declared may not exist at all; flow of 
control may briefly move where you did not expect it; some statements 
may not be executed because they compute constant results or their 
values were already at hand; some statements may execute in different 
places because they were moved out of loops.

Nevertheless it proves possible to debug optimized output. This makes it 
reasonable to use the optimizer for programs that might have bugs."

So all it should take is a call to "strip" to remove the debug info from 
the library, still I'll see if I can
find the way to remove those from the release build at least.

Cheers!


>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>



More information about the ODE mailing list