Permalink
Browse files

MB-5757 Don't use gcc specific options to non-gcc compilers

Change-Id: I9b85c28782b8ab38fc0b59c8f00b9dbd2edb9a5c
Reviewed-on: http://review.couchbase.org/17809
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
  • Loading branch information...
1 parent fe11f54 commit 014191f72222a9fabc88872d339faad3c1224ed5 @trondn trondn committed with fdmanana Jul 2, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 configure.ac
  2. +2 −0 src/couch_view_parser/Makefile.am
View
1 configure.ac
@@ -172,6 +172,7 @@ case "$(uname -s)" in
esac
AM_CONDITIONAL([WINDOWS], [test x$IS_WINDOWS = xTRUE])
+AM_CONDITIONAL([GCC], [ test x$GCC = xyes])
AC_ARG_ENABLE([v8],
[AS_HELP_STRING([--disable-v8],
View
2 src/couch_view_parser/Makefile.am
@@ -84,7 +84,9 @@ endif
if !WINDOWS
couch_view_parserpriv_LTLIBRARIES = couch_view_parser_nif.la
couch_view_parser_nif_la_AM_CPPFLAGS = $(AM_CPPFLAGS) -Icouch_view_parser-$(COUCH_VIEW_PARSER_VERSION) -Iyajl
+if GCC
couch_view_parser_nif_la_CPPFLAGS = -std=c99 -Wall
+endif
couch_view_parser_nif_la_SOURCES = $(couch_view_parser_cxx_srcs)
couch_view_parser_nif_la_LDFLAGS = -module -avoid-version

0 comments on commit 014191f

Please sign in to comment.