derle.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. _boostver=${surum//./_}
  2. export _stagedir="${SRC}/stagedir"
  3. cd ${isim}_${_boostver}
  4. ./bootstrap.sh \
  5. --with-toolset=gcc \
  6. --with-icu \
  7. --with-python=/usr/bin/python3 \
  8. install -Dm755 tools/build/src/engine/b2 "${_stagedir}"/bin/b2
  9. # boostbook is needed by quickbook
  10. install -dm755 "${_stagedir}"/share/boostbook
  11. cp -a tools/boostbook/{xsl,dtd} "${_stagedir}"/share/boostbook/
  12. # default "minimal" install: "release link=shared,static
  13. # runtime-link=shared threading=single,multi"
  14. # --layout=tagged will add the "-mt" suffix for multithreaded libraries
  15. # and installs includes in /usr/include/boost.
  16. # --layout=system no longer adds the -mt suffix for multi-threaded libs.
  17. # install to ${_stagedir} in preparation for split packaging
  18. "${_stagedir}"/bin/b2 \
  19. variant=release \
  20. debug-symbols=off \
  21. threading=multi \
  22. runtime-link=shared \
  23. link=shared,static \
  24. toolset=gcc \
  25. python=3.9 \
  26. cflags="${CPPFLAGS} ${CFLAGS} -fPIC -O3" \
  27. cxxflags="${CPPFLAGS} ${CXXFLAGS} -std=c++14 -fPIC -O3" \
  28. linkflags="${LDFLAGS}" \
  29. --layout=system \
  30. ${MAKEJOBS} \
  31. \
  32. --prefix="${_stagedir}" \
  33. install