mirror of
https://github.com/akheron/jansson.git
synced 2025-04-05 05:25:04 +00:00
Check for gcc before setting gcc specific CFLAGS
This commit is contained in:
parent
6e3ca5c45c
commit
f71eb7fe17
2 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ AC_CONFIG_HEADERS([config.h])
|
|||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_LIBTOOL
|
||||
AM_CONDITIONAL([GCC], [test x$GCC = xyes])
|
||||
|
||||
# Checks for libraries.
|
||||
|
||||
|
|
|
@ -17,4 +17,7 @@ libjansson_la_LDFLAGS = \
|
|||
-export-symbols-regex '^json_' \
|
||||
-version-info 3:0:3
|
||||
|
||||
if GCC
|
||||
# These flags are gcc specific
|
||||
AM_CFLAGS = -Wall -Wextra -Werror
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue