summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/Makefile b/lib/Makefile
index d7b1071b..cb05e44d 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -5,8 +5,8 @@
STOW_ROOT = /usr/local/stow
PRODUCTS = $(HOME)/Products
-GCC_VERSION = 4.6
-BOOST_VERSION = 1_48_0
+GCC_VERSION = 4.7
+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)
@@ -55,7 +53,7 @@ prepare-boost:
boost-build: prepare-boost
(cd $(BOOST_SOURCE) && \
sh bootstrap.sh && \
- ./b2 $(OPTJ) debug --prefix=$(BOOST_STOW) \
+ ./b2 $(OPTJ) debug release --prefix=$(BOOST_STOW) \
--build-dir=$(BOOST_BUILD) $(BOOST_FLAGS) install)
icu-build: