Fix linking errors of lmdb on Windows (#10457)
This commit is contained in:
parent
2be64b38e4
commit
6d54f09d97
18
third_party/lmdb.BUILD
vendored
18
third_party/lmdb.BUILD
vendored
@ -18,8 +18,20 @@ cc_library(
|
|||||||
copts = [
|
copts = [
|
||||||
"-w",
|
"-w",
|
||||||
],
|
],
|
||||||
linkopts = [
|
linkopts = select({
|
||||||
"-lpthread",
|
":windows": ["-Wl,advapi32.lib"], # InitializeSecurityDescriptor, SetSecurityDescriptorDacl
|
||||||
],
|
":windows_msvc": ["-Wl,advapi32.lib"],
|
||||||
|
"//conditions:default": ["-lpthread"],
|
||||||
|
}),
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
config_setting(
|
||||||
|
name = "windows",
|
||||||
|
values = {"cpu": "x64_windows"},
|
||||||
|
)
|
||||||
|
|
||||||
|
config_setting(
|
||||||
|
name = "windows_msvc",
|
||||||
|
values = {"cpu": "x64_windows_msvc"},
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user