summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Makefile b/lib/Makefile
index d7b1071b..7210c517 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -6,7 +6,7 @@ STOW_ROOT = /usr/local/stow
PRODUCTS = $(HOME)/Products
GCC_VERSION = 4.6
-BOOST_VERSION = 1_48_0
+BOOST_VERSION = 1_49_0
CC = gcc-mp-$(GCC_VERSION)
ifeq ($(CC),clang)
@@ -20,22 +20,20 @@ LD = gcc-mp-$(GCC_VERSION)
DIR_SUFFIX = gcc$(subst .,,$(GCC_VERSION))
OPTJ = #-j8
endif
-#CPPFLAGS = -D_GLIBCXX_FULLY_DYNAMIC_STRING=1
-#ifneq ($(CC),clang)
-#CPPFLAGS += -D_GLIBCXX_DEBUG=1
-#endif
CFLAGS = $(CPPFLAGS) -g2 -ggdb
LDFLAGS = -g2 -ggdb
BOOST_SOURCE = boost-release
-#BOOST_DEFINES = define=_GLIBCXX_FULLY_DYNAMIC_STRING=1
+ifeq ($(GCC_VERSION),4.7)
+BOOST_DEFINES = define=_GLIBCXX__PTHREADS=1
+else
+BOOST_DEFINES =
+endif
ifeq ($(CC),clang)
BOOST_TOOLSET = clang
else
BOOST_TOOLSET = darwin
-#BOOST_DEFINES += define=_GLIBCXX_DEBUG=1
endif
-#BOOST_FLAGS = --architecture=x86 --address_model=32_64
BOOST_FLAGS = toolset=$(BOOST_TOOLSET) --layout=versioned \
link=shared threading=single $(BOOST_DEFINES)
BOOST_DIR = boost_$(BOOST_VERSION)-$(DIR_SUFFIX)