1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

Use $(GCC_CFLAGS) for `-Werror' et al. so that it's not used to compile

Gnulib code.
This commit is contained in:
Ludovic Courtès 2008-08-25 11:20:02 +02:00
parent 4b7513463d
commit bfb2e11358
8 changed files with 30 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2008-08-25 Ludovic Courtès <ludo@gnu.org>
* configure.in (GCC_CFLAGS): New variable. Store GCC flags like
`-Werror' inside it so that they are not used when compiling
Gnulib modules.
2008-08-21 Ludovic Courtès <ludo@gnu.org> 2008-08-21 Ludovic Courtès <ludo@gnu.org>
* autogen.sh: Don't use `gnulib-tool', use the Gnulib files * autogen.sh: Don't use `gnulib-tool', use the Gnulib files

View file

@ -1417,17 +1417,19 @@ case "$GCC" in
## less than exasperating. ## less than exasperating.
## -Wpointer-arith was here too, but something changed in gcc/glibc ## -Wpointer-arith was here too, but something changed in gcc/glibc
## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2). ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" GCC_CFLAGS="-Wall -Wmissing-prototypes"
# Do this here so we don't screw up any of the tests above that might # Do this here so we don't screw up any of the tests above that might
# not be "warning free" # not be "warning free"
if test "${GUILE_ERROR_ON_WARNING}" = yes if test "${GUILE_ERROR_ON_WARNING}" = yes
then then
CFLAGS="${CFLAGS} -Werror" GCC_CFLAGS="${GCC_CFLAGS} -Werror"
enable_compile_warnings=no enable_compile_warnings=no
fi fi
;; ;;
esac esac
AC_SUBST(GCC_CFLAGS)
## If we're creating a shared library (using libtool!), then we'll ## If we're creating a shared library (using libtool!), then we'll
## need to generate a list of .lo files corresponding to the .o files ## need to generate a list of .lo files corresponding to the .o files
## given in LIBOBJS. We'll call it LIBLOBJS. ## given in LIBOBJS. We'll call it LIBLOBJS.

View file

@ -1,3 +1,8 @@
2008-08-25 Ludovic Courtès <ludo@gnu.org>
* Makefile.am (AM_CFLAGS): New.
(guile_CFLAGS, libguile_la_CFLAGS): Use it.
2008-08-20 Ludovic Courtès <ludo@gnu.org> 2008-08-20 Ludovic Courtès <ludo@gnu.org>
* eval.c, filesys.c, gc.c, numbers.c, stime.c, threads.c: Don't * eval.c, filesys.c, gc.c, numbers.c, stime.c, threads.c: Don't

View file

@ -35,6 +35,8 @@ DEFAULT_INCLUDES =
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \
-I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_srcdir)/lib -I$(top_builddir)/lib
AM_CFLAGS = $(GCC_CFLAGS)
## The Gnulib Libtool archive. ## The Gnulib Libtool archive.
gnulib_library = $(top_builddir)/lib/libgnu.la gnulib_library = $(top_builddir)/lib/libgnu.la
@ -97,11 +99,11 @@ guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile
guile_SOURCES = guile.c guile_SOURCES = guile.c
guile_CFLAGS = $(GUILE_CFLAGS) guile_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS)
guile_LDADD = libguile.la guile_LDADD = libguile.la
guile_LDFLAGS = @DLPREOPEN@ $(GUILE_CFLAGS) guile_LDFLAGS = @DLPREOPEN@ $(GUILE_CFLAGS)
libguile_la_CFLAGS = $(GUILE_CFLAGS) libguile_la_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS)
libguile_la_SOURCES = alist.c arbiters.c async.c backtrace.c boolean.c \ libguile_la_SOURCES = alist.c arbiters.c async.c backtrace.c boolean.c \
chars.c continuations.c convert.c debug.c deprecation.c \ chars.c continuations.c convert.c debug.c deprecation.c \

View file

@ -1,3 +1,7 @@
2008-08-25 Ludovic Courtès <ludo@gnu.org>
* Makefile.am (AM_CFLAGS): New.
2008-06-28 Ludovic Courtès <ludo@gnu.org> 2008-06-28 Ludovic Courtès <ludo@gnu.org>
* Makefile.am (INCLUDES): Renamed to... * Makefile.am (INCLUDES): Renamed to...

View file

@ -29,6 +29,8 @@ DEFS = @DEFS@ @EXTRA_DEFS@
AM_CPPFLAGS = -I.. -I$(srcdir)/.. \ AM_CPPFLAGS = -I.. -I$(srcdir)/.. \
-I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_srcdir)/lib -I$(top_builddir)/lib
AM_CFLAGS = $(GCC_CFLAGS)
srfiincludedir = $(pkgincludedir)/srfi srfiincludedir = $(pkgincludedir)/srfi
# These headers are visible as <guile/srfi/mumble.h> # These headers are visible as <guile/srfi/mumble.h>

View file

@ -1,3 +1,7 @@
2008-08-25 Ludovic Courtès <ludo@gnu.org>
* standalone/Makefile.am (test_cflags): Add `$(GCC_CFLAGS)'.
2008-08-19 Ludovic Courtès <ludo@gnu.org> 2008-08-19 Ludovic Courtès <ludo@gnu.org>
* tests/goops.test (object update)[changing class, `hell' in * tests/goops.test (object update)[changing class, `hell' in

View file

@ -34,7 +34,7 @@ test_cflags = \
-I$(top_srcdir)/test-suite/standalone \ -I$(top_srcdir)/test-suite/standalone \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/lib -I$(top_builddir)/lib \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
$(EXTRA_DEFS) $(GUILE_CFLAGS) $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
AM_LDFLAGS = $(GUILE_CFLAGS) AM_LDFLAGS = $(GUILE_CFLAGS)