diff options
author | Ludovic Courtes <ludo@chbouib.org> | 2007-06-06 17:00:00 +0200 |
---|---|---|
committer | Ludovic Courtes <ludo@chbouib.org> | 2007-06-06 17:00:00 +0200 |
commit | befacfea1d24f2b6b43ecdf12a22f47b160f39b6 (patch) | |
tree | a2c1344b043ec991e9d016f7b6f2674f608c2f36 /guile | |
parent | 83de5ed4aa6a91b1223d4117e7cfef691b87d97e (diff) | |
download | gnutls-befacfea1d24f2b6b43ecdf12a22f47b160f39b6.tar.gz |
Fixed the `-Wno-strict-prototypes' issue in Guile code.
* configure.in: Add all custom CFLAGS to `AM_CFLAGS' rather than
`CFLAGS', except for `-D_REENTRANT -D_THREAD_SAFE' which must be
present during feature tests. Substitute `AM_CFLAGS'.
* src/Makefile.am (libguile_gnutls_v_0_la_CFLAGS): Added `$(AM_CFLAGS)'.
(libguile_gnutls_extra_v_0_la_CFLAGS): Likewise.
(AM_CFLAGS): When GCC is used, add `-Wno-strict-prototypes'.
Diffstat (limited to 'guile')
-rw-r--r-- | guile/src/Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am index 0550652413..c86e3f8cd8 100644 --- a/guile/src/Makefile.am +++ b/guile/src/Makefile.am @@ -39,12 +39,14 @@ GNULIB_CFLAGS = -I$(top_builddir)/lgl -I$(top_srcdir)/lgl libguile_gnutls_v_0_la_SOURCES = core.c errors.c utils.c libguile_gnutls_v_0_la_CFLAGS = \ + $(AM_CFLAGS) \ $(GNULIB_CFLAGS) $(GUILE_CFLAGS) $(LIBGNUTLS_CFLAGS) libguile_gnutls_v_0_la_LDFLAGS = \ $(GNULIB_LDFLAGS) $(GUILE_LDFLAGS) $(LIBGNUTLS_LIBS) libguile_gnutls_extra_v_0_la_SOURCES = extra.c libguile_gnutls_extra_v_0_la_CFLAGS = \ + $(AM_CFLAGS) \ $(GNULIB_CFLAGS) $(GUILE_CFLAGS) \ $(LIBGNUTLS_CFLAGS) $(LIBGNUTLS_EXTRA_CFLAGS) libguile_gnutls_extra_v_0_la_LDFLAGS = \ @@ -57,9 +59,9 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(builddir) if HAVE_GCC # Generated `.x' files and Guile's `scm_c_define_gsubr ()' require -# `-Wno-strict-prototypes'. -libguile_gnutls_v_0_la_CFLAGS += -Wno-strict-prototypes -libguile_gnutls_extra_v_0_la_CFLAGS += -Wno-strict-prototypes +# `-Wno-strict-prototypes'. This trick makes sure `-Wno-s-p' appears +# after `-Ws-p'. +AM_CFLAGS += -Wno-strict-prototypes endif |