Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
keep gcc specific flags specific to a gcc build (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintDubious authored and jmacd committed Dec 23, 2016
1 parent 012743c commit efadeda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile.am
Expand Up @@ -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
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -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])
Expand Down

0 comments on commit efadeda

Please sign in to comment.