Subject: [Boost-build] Newbie building on interix
From: Robert Oeffner (robert_at_[hidden])
Date: 2009-07-13 09:43:19
I'm trying to build Boost1.39.0 on interix which is a UNIX subsystem running on top of the NT kernel for Windows XP and Vista. MS provides it as an optional add-on.
The compiler I'm using is an experimental port of GCC4.4.0 as there isn't any recent GCC port around for interix. So far I'm able to build medium sized C++ projects with the compiler so I believe it's working.
Having tried to set up boost has so far proved problematic. A bootstrap.sh run followed by a bjam run results in compiler errors such as:
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/math/build/gcc-4.4.0/release/threading-multi/asinh.o" "libs/math/build/../src/tr1/asinh.cpp"
...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-4.4.0/release/threading-multi/asinh.o...
g++: unrecognized option '-pthread'
I know that on interix -pthread should be replaced by -lpthread and that GCC on interix currently doesn't support -fPIC. Does anybody know where I can amend these compiler flags?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk