unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* GUILE_CFLAGS contains warning options
@ 2011-02-19 14:07 Bruno Haible
  2011-02-19 17:17 ` Bruno Haible
  2011-02-20 21:28 ` Andy Wingo
  0 siblings, 2 replies; 12+ messages in thread
From: Bruno Haible @ 2011-02-19 14:07 UTC (permalink / raw)
  To: bug-guile

Hi,

After guile-2.0.0 is installed using gcc, the installed file
$LIBDIR/pkgconfig/guile-2.0.pc contains a line such as

  Cflags: -I${pkgincludedir}/2.0 -Wall -I$LIBUNISTRING_PREFIX/include -pthread -I$GC_PREFIX/include  

and "guile-config compile" (which is used to define GUILE_CFLAGS through the
macro GUILE_FLAGS in $PREFIX/share/aclocal/guile.m4) produces output such as:

  -Wall -pthread -I$PREFIX/include/guile/2.0 -I$LIBUNISTRING_PREFIX/include -I$GC_PREFIX/include  

The presence of -Wall is IMO wrong for two reasons:

1) If I were to use a compiler different from gcc for compiling programs
   that use guile (such as the vendor cc on Solaris, HP-UX, OSF/1, or AIX), it
   would lead to an error when invoking that compiler.

2) Even if I use gcc, it's not guile's business to enable warning options on
   _my_ code just because my code uses guile.

Bruno
-- 
In memoriam Friedrich Weißler <http://en.wikipedia.org/wiki/Friedrich_Weißler>



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-02-27 23:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-19 14:07 GUILE_CFLAGS contains warning options Bruno Haible
2011-02-19 17:17 ` Bruno Haible
2011-02-20 21:28 ` Andy Wingo
2011-02-20 22:50   ` Bruno Haible
2011-02-21  2:52     ` Ken Raeburn
2011-02-22 20:46     ` Ludovic Courtès
2011-02-22 21:40       ` Bruno Haible
2011-02-23 10:13         ` Ludovic Courtès
2011-02-23 10:28           ` Bruno Haible
2011-02-27 16:54             ` Ludovic Courtès
2011-02-27 21:59               ` Bruno Haible
2011-02-27 23:43                 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).