Skip to content

Commit

Permalink
It looks the weak symbol trick in libstdc++ forces us to link against…
Browse files Browse the repository at this point in the history
… pthread, even when no symbol is (from linker's POV) referenced.
  • Loading branch information
0x804d8000 committed May 31, 2021
1 parent 99542dc commit 15d188c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BLADE_ROOT
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ cc_config(
'thirdparty/',
],
linkflags = [
'-Lthirdparty/jdk/lib',
'-Wl,--no-as-needed -lpthread -Wl,--as-needed',
],
benchmark_libs = ['//thirdparty/benchmark:benchmark'],
benchmark_main_libs = ['//thirdparty/benchmark:benchmark_main'],
Expand Down

0 comments on commit 15d188c

Please sign in to comment.