Permalink
Browse files

keep gcc specific flags specific to a gcc build (#5)

  • Loading branch information...
1 parent 012743c commit efadeda0cdd647018739e45d034d3260267a8763 @SaintDubious SaintDubious committed with jmacd Dec 23, 2016
Showing with 8 additions and 3 deletions.
  1. +6 −3 Makefile.am
  2. +2 −0 configure.ac
View
@@ -11,6 +11,9 @@ libopentracing_la_LDFLAGS = -version-info 1:0:0
ACLOCAL_AMFLAGS = -I m4
-AM_CXXFLAGS= -Wall -fno-elide-constructors -pedantic-errors -ansi -Wextra -Wall
-AM_CXXFLAGS+= -Winit-self -Wold-style-cast -Woverloaded-virtual -Winit-self
-AM_CXXFLAGS+= -Wuninitialized -Wmissing-declarations -Werror -std=c++98
+AM_CXXFLAGS= -fno-elide-constructors -pedantic-errors -ansi -std=c++98
+
+if COMPILER_IS_GCC
+AM_CXXFLAGS+= -Wall -Werror -Wextra -Winit-self -Wold-style-cast
+AM_CXXFLAGS+= -Woverloaded-virtual -Wuninitialized -Wmissing-declarations
+endif
View
@@ -3,6 +3,8 @@ AC_INIT([libopentracing], [1.0.0])
#AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_INIT_AUTOMAKE([subdir-objects])
+AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
+
AC_CONFIG_MACRO_DIR([m4])
#AC_CONFIG_HEADERS([config.h])

0 comments on commit efadeda

Please sign in to comment.