Re: [AD] Fix profiling on BeOS

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I see. But still - the examples never get linked with the profiling
> code. This could be intended, 

Sure, again a feature that spells b-u-g :-)

> but adding -pg to the linker actually allows to build the examples in
> profiling mode:

... which should not shock anyone in a profile build of the library.

> --- configure.in        11 Apr 2003 12:51:47 -0000      1.57
> +++ configure.in        23 Apr 2003 12:21:43 -0000
> @@ -215,6 +215,7 @@
>    LIB_TO_LINK=allp
>    PLUGIN_LIB=lib/unix/libapdat.a
>    allegro_build_profiling_library=yes
> +  LDFLAGS="-pg $LDFLAGS"
>  else
>    COMPILE_PROGRAM=COMPILE_NORMAL
>    COMPILE_S_PROGRAM=COMPILE_S_NORMAL
>
> (I still have no idea where in configure.in things like this go, so I
> did a search for "LDFLAGS", and added it near the occurence already
> there.)

That's a good method for this sort of fix. Applied to trunk and branch.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/