#!/bin/bash
set -e
cd boost
cp libs/atomic/src/lock_pool_init1.ipp boost/preprocessor/iteration/detail/iter/limits
cp libs/atomic/src/lock_pool_init256.ipp boost/preprocessor/iteration/detail/iter/limits
rm -rf stage/*
mkdir -p "stage/lib"
mkdir -p "stage/boost/bin.v2/libs/atomic"
mkdir -p "stage/boost/bin.v2/libs/atomic/build"
mkdir -p "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7"
mkdir -p "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release"
mkdir -p "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static"
mkdir -p "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_SOURCE -DBOOST_ATOMIC_STATIC_LINK=1 -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi/lock_pool.o" "libs/atomic/src/lock_pool.cpp"
rm -f "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi/libboost_atomic.a"
"/usr/bin/ar" rc "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi/libboost_atomic.a" "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi/lock_pool.o"
"/usr/bin/ranlib" "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi/libboost_atomic.a"
cp "stage/boost/bin.v2/libs/atomic/build/gcc-4.4.7/release/link-static/threading-multi/libboost_atomic.a" "stage/lib/libboost_atomic.a"
mkdir -p "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static"
mkdir -p "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi/error_code.o" "libs/system/src/error_code.cpp"
rm -f "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi/libboost_system.a"
"/usr/bin/ar" rc "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi/libboost_system.a" "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi/error_code.o"
"/usr/bin/ranlib" "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi/libboost_system.a"
cp "stage/boost/bin.v2/libs/system/build/gcc-4.4.7/release/link-static/threading-multi/libboost_system.a" "stage/lib/libboost_system.a"
mkdir -p "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static"
mkdir -p "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/chrono.o" "libs/chrono/src/chrono.cpp"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/thread_clock.o" "libs/chrono/src/thread_clock.cpp"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/process_cpu_clocks.o" "libs/chrono/src/process_cpu_clocks.cpp"
rm -f "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/libboost_chrono.a"
"/usr/bin/ar" rc "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/libboost_chrono.a" "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/chrono.o" "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/thread_clock.o" "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/process_cpu_clocks.o"
"/usr/bin/ranlib" "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/libboost_chrono.a"
cp "stage/boost/bin.v2/libs/chrono/build/gcc-4.4.7/release/link-static/threading-multi/libboost_chrono.a" "stage/lib/libboost_chrono.a"
mkdir -p "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release"
mkdir -p "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static"
mkdir -p "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi"
mkdir -p "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/once.o" "libs/thread/src/pthread/once.cpp"
"g++" -fPIC -fstack-protector -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/future.o" "libs/thread/src/future.cpp"
rm -f "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/libboost_thread.a"
"/usr/bin/ar" rc "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/libboost_thread.a" "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/thread.o" "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/once.o" "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/future.o"
"/usr/bin/ranlib" "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/libboost_thread.a"
cp "stage/boost/bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/libboost_thread.a" "stage/lib/libboost_thread.a"