Skip to content

Commit dda5a44

Browse files
committed
more libs
1 parent 9986ac4 commit dda5a44

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

deps/ReactantExtra/BUILD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ cc_toolchain_config(
9494
#"--ld-path=/opt/x86_64-linux-musl/bin/ld.lld",
9595
"--ld-path=/opt/bin/x86_64-linux-musl-cxx11/x86_64-linux-musl-ld.lld",
9696
"-stdlib=libstdc++",
97+
"-static-libstdc++",
9798
],
9899
link_libs = [
99100
"-lstdc++",
@@ -188,6 +189,7 @@ cc_toolchain_config(
188189
"-isystem /opt/BB_TARGET/BB_TARGET/include/c++/GCC_VERSION/BB_TARGET",
189190
"-isystem /opt/BB_TARGET/BB_TARGET/include/c++/GCC_VERSION/backward",
190191
"-isystem /opt/BB_TARGET/BB_TARGET/include/c++/GCC_VERSION/parallel",
192+
"-stdlib=libstdc++",
191193
],
192194
compiler = "compiler",
193195
coverage_compile_flags = ["--coverage"],
@@ -209,7 +211,10 @@ cc_toolchain_config(
209211
],
210212
dbg_compile_flags = ["-g"],
211213
host_system_name = "linux",
212-
link_flags = [],
214+
link_flags = [
215+
"-stdlib=libstdc++",
216+
"-static-libstdc++",
217+
],
213218
link_libs = [
214219
"-lstdc++",
215220
"-lm",
@@ -221,7 +226,6 @@ cc_toolchain_config(
221226
"-DNDEBUG",
222227
"-ffunction-sections",
223228
"-fdata-sections",
224-
# "-stdlib=libstdc++",
225229
],
226230
opt_link_flags = ["-Wl,--gc-sections"],
227231
# TODO gcc doesn't support it, only put it on clang (maybe even only for clang on aarch64-darwin?)
@@ -349,7 +353,6 @@ cc_toolchain_config(
349353
"-DNDEBUG",
350354
"-ffunction-sections",
351355
"-fdata-sections",
352-
# "-stdlib=libstdc++",
353356
],
354357
opt_link_flags = ["-Wl,--gc-sections"],
355358
# TODO gcc doesn't support it, only put it on clang (maybe even only for clang on aarch64-darwin?)
@@ -777,6 +780,7 @@ cc_toolchain_config(
777780
abi_version = "local",
778781
compile_flags = [
779782
"-I/usr/include/c++/11",
783+
"-stdlib=libstdc++",
780784
],
781785
compiler = "clang",
782786
coverage_compile_flags = ["--coverage"],
@@ -813,7 +817,6 @@ cc_toolchain_config(
813817
"-DNDEBUG",
814818
"-ffunction-sections",
815819
"-fdata-sections",
816-
"-stdlib=libstdc++",
817820
"-I/usr/include/c++/11",
818821
],
819822
opt_link_flags = ["-Wl,--gc-sections"],

0 commit comments

Comments
 (0)