To: None <firstname.lastname@example.org>
From: Jan Schaumann <email@example.com>
Date: 08/24/2006 17:11:20
Content-Type: text/plain; charset=us-ascii
Many packages now use C99, and on some platforms, you actually have to
pass the proper flags to the compiler to get C99 support or not fail.
On IRIX, for example, if you try to compile a package that uses C99
without telling the compiler, it will fail. So far, I've manually added
a check to individual packages, in which I check for the MIPSPro
compiler and then add "-c99" to the CFLAGS.
However, trying to build stuff on IRIX with gcc, I realize that an
additional CFLAGS (-std=3Dc99) is also required for gcc. Instead of
patching the same number of packages again with an additional check, I
was thinking it might make more sense to simply add a=20
to the package and then let the compiler.mk framework take care of
this. If we follow this practice, then any package that has
USE_LANGUAGES=3Dc (ie not c99) should default to c89 and enforce it.
How does that sound?
Free Speech Online - Stop Internet Censorship
--- Electronic Frontier Foundation -- http://www.eff.org ---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
-----END PGP SIGNATURE-----