Don't use GNU-make specific export for global AM_CFLAGS

Just define it at configure time, it's automatically set in all makefiles.

Fixes #203.
This commit is contained in:
Brice Goglin 2014-08-26 14:56:14 +02:00
parent d4a7de7c11
commit 485c7640a1
2 changed files with 5 additions and 5 deletions

View File

@ -8,8 +8,3 @@ dvi:
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = jansson.pc
if GCC
# These flags are gcc specific
export AM_CFLAGS = -Wall -Wextra -Wdeclaration-after-statement
endif

View File

@ -92,6 +92,11 @@ AC_DEFINE([USE_WINDOWS_CRYPTOAPI], [1],
[Define to 1 if CryptGenRandom should be used for seeding the hash function])
fi
if test x$GCC = xyes; then
AM_CFLAGS="-Wall -Wextra -Wdeclaration-after-statement"
fi
AC_SUBST([AM_CFLAGS])
AC_CONFIG_FILES([
jansson.pc
Makefile