@@ -4,7 +4,7 @@ $(package)_download_path=https://archives.boost.io/release/1.74.0/source/
44$(package)_file_name =$(package ) _$($(package ) _version) .tar.bz2
55$(package)_sha256_hash =83bfc1507731a0906e387fc28b7ef5417d591429e51e788417fe9ff025e116b1
66
7- # Optional existing patch
7+ # Optional patch (ok to leave)
88$(package)_patches += bootstrap-clang-darwin.patch
99
1010ifeq ($(host_os ) ,darwin)
@@ -17,7 +17,6 @@ $(package)_config_opts_debug=variant=debug
1717$(package ) _config_opts=--layout=tagged --build-type=complete --user-config=user-config.jam
1818$(package ) _config_opts+=threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1
1919
20- # Per-platform
2120$(package ) _config_opts_linux=threadapi=pthread runtime-link=shared
2221$(package ) _config_opts_darwin=toolset=clang-darwin runtime-link=shared
2322
@@ -29,7 +28,6 @@ $(package)_config_opts_i686_linux=address-model=32 architecture=x86
2928$(package ) _toolset_$(host_os ) =gcc
3029$(package ) _archiver_$(host_os ) =$($(package ) _ar)
3130
32- # macOS override
3331$(package ) _toolset_darwin=clang-darwin
3432$(package ) _archiver_darwin=$($(package ) _ar)
3533
@@ -41,73 +39,66 @@ $(package)_cxxflags_linux=-fPIC
4139$(package ) _ldflags+= -Wl,-syslibroot,$(OSX_SDK_PATH )
4240endef
4341
44-
45- # ==================================================================
46- # PREPROCESS — Create user-config.jam
47- # ==================================================================
48-
4942ifeq ($(host_os ) ,darwin)
5043
5144define $(package)_preprocess_cmds
52- echo "using clang-darwin : : clang++ -target x86_64-apple-darwin11 --sysroot=$(OSX_SDK_PATH ) -mmacosx-version-min=10.8 -stdlib=libc++ \
53- : <cxxflags>\"-nostdinc++ -std=c++11 -isystem$(OSX_SDK_PATH ) /usr/include/c++/v1\" \
54- <linkflags>\"-stdlib=libc++ -Wl,-syslibroot,$(OSX_SDK_PATH ) \" \
55- <archiver>\"$(host_AR ) \" \
56- <ranlib>\"$(host_RANLIB ) \" \
57- <striper>\"$(host_STRIP ) \" ;" > user-config.jam
45+ echo "using clang-darwin : : clang++ -target x86_64-apple-darwin11 \
46+ --sysroot=$(OSX_SDK_PATH ) \
47+ -mmacosx-version-min=10.8 \
48+ -stdlib=libc++ \
49+ : <cxxflags>\"-nostdinc++ -std=c++11 \
50+ -isystem$(OSX_SDK_PATH ) /usr/include/c++/v1\" \
51+ <linkflags>\"-stdlib=libc++ -Wl,-syslibroot,$(OSX_SDK_PATH ) \" \
52+ <archiver>\"$(host_AR ) \" \
53+ <ranlib>\"$(host_RANLIB ) \" \
54+ <striper>\"$(host_STRIP ) \" \
55+ ;" > user-config.jam
5856endef
5957
6058else
6159
6260define $(package)_preprocess_cmds
63- echo "using gcc : : $($(package ) _cxx) \
64- : <cxxflags>\"$($(package ) _cxxflags) \" \
65- <linkflags>\"$($(package ) _ldflags) \" \
66- <archiver>\"$($(package ) _ar) \" \
67- <ranlib>\"$(host_RANLIB ) \" \
68- <striper>\"$(host_STRIP ) \" ;" > user-config.jam
61+ echo "using gcc : : $($(package ) _cxx) \
62+ : <cxxflags>\"$($(package ) _cxxflags) \" \
63+ <linkflags>\"$($(package ) _ldflags) \" \
64+ <archiver>\"$($(package ) _ar) \" \
65+ <ranlib>\"$(host_RANLIB ) \" \
66+ <striper>\"$(host_STRIP ) \" \
67+ ;" > user-config.jam
6968endef
7069
7170endif
7271
73-
74- # ==================================================================
75- # CONFIG — Bootstrap B2
76- # ==================================================================
77-
7872ifeq ($(host_os ) ,darwin)
7973
8074define $(package)_config_cmds
81- PATH="$(BOOST_NO_WRAP_PATH ) " CC="$(CC_FOR_BUILD ) " CXX="$(CXX_FOR_BUILD ) " ./bootstrap.sh \
82- --without-icu \
83- --with-toolset=clang-darwin \
84- --with-libraries=$($(package ) _config_libraries) \
85- || ( echo "=== BOOST BOOTSTRAP.LOG ===" && cat bootstrap.log && echo "=== END ===" && false )
86-
87- # Remove Boost auto-generated toolset to avoid duplicate definitions
88- sed -i '/using clang-darwin/d' project-config.jam
75+ PATH="$(BOOST_NO_WRAP_PATH ) " CC="$(CC_FOR_BUILD ) " CXX="$(CXX_FOR_BUILD ) " \
76+ ./bootstrap.sh --without-icu \
77+ --with-toolset=clang-darwin \
78+ --with-libraries=$($(package ) _config_libraries) \
79+ || ( echo "=== BOOST BOOTSTRAP.LOG ===" \
80+ && cat bootstrap.log \
81+ && echo "=== END BOOST BOOTSTRAP.LOG ===" \
82+ && false )
83+
84+ sed -i '/using clang-darwin/d' project-config.jam
8985endef
9086
9187else
9288
9389define $(package)_config_cmds
94- ./bootstrap.sh --without-icu \
90+ ./bootstrap.sh --without-icu \
9591 --with-libraries=$($(package ) _config_libraries)
9692endef
9793
9894endif
9995
100-
101- # ==================================================================
102- # BUILD + INSTALL
103- # ==================================================================
104-
10596define $(package)_build_cmds
106- ./b2 -d2 -j2 -d1 --prefix=$($(package ) _staging_prefix_dir) \
107- $($(package ) _config_opts) stage
97+ ./b2 -d2 -j2 -d1 --prefix=$($(package ) _staging_prefix_dir) \
98+ $($(package ) _config_opts) stage
10899endef
109100
110101define $(package)_stage_cmds
111- ./b2 -d0 -j4 --prefix=$($(package ) _staging_prefix_dir) \
112- $($(package ) _config_opts) install
102+ ./b2 -d0 -j4 --prefix=$($(package ) _staging_prefix_dir) \
103+ $($(package ) _config_opts) install
113104endef
0 commit comments