Re: [Fresco-devel] Bug 223 - "*-config scripts have inappropriate --cxxflags output"

Tobias Hunger <[email protected]> Mon, 31 Mar 2003 02:12:58 +0200
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
sashang <[email protected]> wrote:
> However in Fresco's
> case it doesn't look like automake is used. Instead the makefile.in is
> hand made. 

That's right. We do that on purpose. Autoconf is allready rather
complex, automake makes things even more complicated from all I hear.

> How does this fit in with the bug report? Well the set of flags cxxflags
> "-g O2" are generated by autoconf for even the simplest 'hello world'
> type project. But it would be nice if there was an option to let the
> user choose the cxxflags to use, or if it just took cxxflags from the
> environment. I'm looking into how to do that at the moment.

You are mixing two bugs I think: One is that you should get different
flags when configureing with "--enable-optimization", with
"--enable-debug" or without those. That's bug45.

Completly unrelated to that is bug223. Each subproject generates a
Subprojectname-config script during configure and another one during
make install (examples: Prague-config, Babylon-config). These are then
used during the build of the other subprojects so that the relevant
headers and libraries from each of those subprojects are found.
Something like those scritps is rather common in the unix-world.

These scripts return the "-g -O2" when asked which CXXFLAGS are needed
to use the subprojects they are giving information on. That's wrong as
you will not need to enable debug symbols (-g) when building a program
using some library, independent of wether that's build with debugsymbols
or not. Specifiying an optimization level is wrong too.

Thanks for looking onto the buildsystem. We greatly appreciate anybody
helping us with this little project of ours;-) As I told you on IRC
allready: Stop by in #fresco on irc.freenode.net whenever you have
questions (or send mails here).

PS: Anyone with good webmastering skills around? We could use somebody
able to go over our website and webtools, fixing the bugs there. Step
forward if you dare;-)

-- 
Gruss,
Tobias

------------------------------------------------------------
Tobias Hunger           The box said: 'Windows 95 or better'
[email protected]                      So I installed Linux.
------------------------------------------------------------
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+h4gJv0FZW3NyoqURArwTAJ0WyFbx3JwBYKXYuDW4thTX5MboCQCgn4lU
NrGS9BO/XRm0/CBgarjB7sc=
=ZN6x
-----END PGP SIGNATURE-----