Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 014191f72222a9fabc88872d339faad3c1224ed5 1 parent fe11f54
Trond Norbye trondn authored fdmanana committed
Showing with 3 additions and 0 deletions.
  1. +1 −0  configure.ac
  2. +2 −0  src/couch_view_parser/Makefile.am
1  configure.ac
View
@@ -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],
2  src/couch_view_parser/Makefile.am
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.