[GEM-dev] Re: [GEM-cvs] Gem/src/Gnu configure.in
IOhannes m zmoelnig
zmoelnig at iem.at
Tue May 24 18:50:05 CEST 2005
james tittle wrote:
> On May 24, 2005, at 2:21 AM, IOhannes m zmoelnig wrote:
>
>> i guess it is like:
>> paste the code into acinclude.m4
>> run "aclocal"
>> run "autoconf"
>> run "./configure"
>
>
> ...other things:
>
> ...in configure.in, there is:
>
> dnl i am not entirely sure, whether "-fPIC" is a good idea on ALL
> platforms
> CXXFLAGS="$CXXFLAGS -fPIC"
>
> AC_SUBST(CXXFLAGS)
>
> AC_SUBST(AFLAGS)
>
> AC_SUBST(CXXDEBUG_FLAGS)
> AC_SUBST(CXXOPTIMIZE_FLAGS)
>
> ...if I read this right, it means that both debug and optimize flags
> are alway substituted? If so, how are we supposed to do a debug-only
> build, with no optimizations? Shouldn't we have a --debug flag for
> configure?
well, i just split the flags into those that are responsible for
debugging information and those that are responsible for optimization to
make it a bit more readable.
there is no special meaning behind it at all.
otoh, this makes it simple to add a "debug"-directive to the Makefile
which just uses the debug-flags (and ignores the optimization flags)
mfg.asd.r
IOhannes
More information about the GEM-dev
mailing list