Skip to content

Commit

Permalink
fix build on ubuntu/g++-4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Feb 11, 2014
1 parent e98fc07 commit b8ab4b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
CXX := $(CXX)
BOOST_LIBS = -lboost_timer -lboost_system -lboost_chrono
CXXFLAGS := $(CXXFLAGS) -O3 -Wall -Wsign-compare -DNDEBUG -Wsign-conversion -Wshadow -Wunused-parameter -Wshorten-64-to-32 -pedantic -finline-functions -fvisibility-inlines-hidden -std=c++11
CXXFLAGS := $(CXXFLAGS) -O3 -Wall -Wsign-compare -DNDEBUG -Wsign-conversion -Wshadow -Wunused-parameter -pedantic -finline-functions -fvisibility-inlines-hidden -std=c++11
LDFLAGS := $(LDFLAGS)

OS:=$(shell uname -s)
ifeq ($(OS),Darwin)
CXXFLAGS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
else
BOOST_LIBS += -lrt
endif

ifeq (sizes,$(firstword $(MAKECMDGOALS)))
Expand Down

0 comments on commit b8ab4b8

Please sign in to comment.