Skip to content
This repository
Browse code

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 2 changed files with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  configure.ac
  2. +2 0  src/couch_view_parser/Makefile.am
1  configure.ac
@@ -172,6 +172,7 @@ case "$(uname -s)" in
172 172 esac
173 173
174 174 AM_CONDITIONAL([WINDOWS], [test x$IS_WINDOWS = xTRUE])
  175 +AM_CONDITIONAL([GCC], [ test x$GCC = xyes])
175 176
176 177 AC_ARG_ENABLE([v8],
177 178 [AS_HELP_STRING([--disable-v8],
2  src/couch_view_parser/Makefile.am
@@ -84,7 +84,9 @@ endif
84 84 if !WINDOWS
85 85 couch_view_parserpriv_LTLIBRARIES = couch_view_parser_nif.la
86 86 couch_view_parser_nif_la_AM_CPPFLAGS = $(AM_CPPFLAGS) -Icouch_view_parser-$(COUCH_VIEW_PARSER_VERSION) -Iyajl
  87 +if GCC
87 88 couch_view_parser_nif_la_CPPFLAGS = -std=c99 -Wall
  89 +endif
88 90 couch_view_parser_nif_la_SOURCES = $(couch_view_parser_cxx_srcs)
89 91 couch_view_parser_nif_la_LDFLAGS = -module -avoid-version
90 92

0 comments on commit 014191f

Please sign in to comment.
Something went wrong with that request. Please try again.