summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-01-04 15:04:50 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-01-04 15:04:50 -0500
commitb52011c7b2dbfcd82b3bd9e8efaff405bd475274 (patch)
tree9bfd9e4f7243032b653e05b9373ed2a17bb27890 /lib
parent09a95b474c231b587ddcdb14fa1ff25ab8c924a3 (diff)
downloadfork-ledger-b52011c7b2dbfcd82b3bd9e8efaff405bd475274.tar.gz
fork-ledger-b52011c7b2dbfcd82b3bd9e8efaff405bd475274.tar.bz2
fork-ledger-b52011c7b2dbfcd82b3bd9e8efaff405bd475274.zip
Use boost-release when building ledger/lib
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 01a51717..3f399e58 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -25,7 +25,7 @@ CFLAGS = $(CPPFLAGS) -g
LDFLAGS = -g
BOOST_VERSION = 1_45_0
-BOOST_SOURCE = boost_$(BOOST_VERSION)
+BOOST_SOURCE = boost-release
BOOST_DEFINES = define=_GLIBCXX_FULLY_DYNAMIC_STRING=1
ifeq ($(CC),clang)
BOOST_TOOLSET = clang
@@ -47,7 +47,11 @@ BOOST_ICU_BUILD = $(PRODUCTS)/$(BOOST_ICU_DIR)
all: boost-build cppunit-build #icu-build boost-icu-build
-boost-build:
+prepare-boost:
+ perl -i -pe 's/local command = \[ common\.get-invocation-command darwin : g\+\+ : \$$\(command\) \] ;/local command = [ common.get-invocation-command darwin : g++ : $(CXX) ] ;/;' $(BOOST_SOURCE)/tools/build/v2/tools/darwin.jam
+ perl -i -pe 's/flags darwin\.compile OPTIONS : -no-cpp-precomp -gdwarf-2 ;/flags darwin\.compile OPTIONS : -gdwarf-2 ;/;' $(BOOST_SOURCE)/tools/build/v2/tools/darwin.jam
+
+boost-build: prepare-boost
(cd $(BOOST_SOURCE) && \
sh bootstrap.sh && \
./bjam $(OPTJ) debug --prefix=$(BOOST_STOW) --build-dir=$(BOOST_BUILD) \