Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

76 rindas
2.5KB

  1. SHELL:=/bin/bash
  2. boost_:
  3. # below URL is unreliable
  4. # wget "https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2"
  5. #tar -xf boost_1_72_0.tar.bz2
  6. git clone --branch boost-1.73.0 --recursive https://github.com/boostorg/boost
  7. bash ../ubuntu1804.sh make impl
  8. make package
  9. impl:
  10. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  11. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  12. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  13. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  14. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40
  15. pushd boost && \
  16. mkdir -p target && \
  17. CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \
  18. ./b2 clean && \
  19. ./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-std=c++17 -stdlib=libstdc++" linkflags="-stdlib=libstdc++" --with-program_options \
  20. --with-system \
  21. --with-date_time \
  22. --with-thread \
  23. --with-chrono || true
  24. # do not use -D_GLIBCXX_USE_CXX11_ABI=0 , other libs I now compile with libstdc++ don't do it either.
  25. # with stdlib: \
  26. #./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" || true
  27. # without:
  28. #./b2 --prefix=$$PWD/target/ toolset=clang || true
  29. # ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those.
  30. #./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++"
  31. # also from; ./b2 --show-libraries && \
  32. #- atomic
  33. #- container
  34. #- context
  35. #- contract
  36. #- coroutine
  37. #- exception
  38. #- fiber
  39. #- filesystem
  40. #- graph
  41. #- graph_parallel
  42. #- headers
  43. #- iostreams
  44. #- locale
  45. #- log
  46. #- math
  47. #- mpi
  48. #- nowide
  49. #- python
  50. #- random
  51. #- regex
  52. #- serialization
  53. #- stacktrace
  54. #- test
  55. #- timer
  56. #- type_erasure
  57. #- wave
  58. package:
  59. rm -rf out
  60. mkdir -p out/opt/cppse/build/boost/include/
  61. cp -L -prv boost/stage/lib out/opt/cppse/build/boost/
  62. cp -L -prv boost/boost out/opt/cppse/build/boost/include/
  63. rm -rf boost_*_amd64.deb
  64. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n boost --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "boost - build dependency" --url "https://github.com/liballeg/boost.git" --deb-generate-changes -C /src/out
  65. clean:
  66. rm -rf boost
  67. rm -rf out
  68. shell:
  69. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash