What's the difference between b2 and ./bootstrap.sh when building python
Asked Answered
I

1

5

Sorry if this has already been asked? I've build boost from source but have always been confused about the build tools. Which tool should be used when building the boost libraries from scratch. To me it seems that bootstrap.sh is used to create the bjam executable and then bjam should be used to do the actual build. However, I've noticed that you can pass lots of parameters to bootstrap.sh such as the toolset (compiler) to use and the libraries to build, etc...and launch the build with bootstrap.sh

Also, there are at least three different ways of starting a build: ./bootstrap.sh, bjam, b2

Could someone summarize the purpose of each as the online docs don't seem to explain this

Thanks!

Anwar

Install answered 15/5, 2014 at 15:6 Comment(0)
P
8

b2 is just the second version of bjam. The bootstrap.sh script just builds the boost jam executable from the source code contained in the boost source, creates project-config.jam and executes the executable. You can see the shell script here

Puttergill answered 15/5, 2014 at 15:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.