Fix linking errors of lmdb on Windows (#10457)

This commit is contained in:
Yun Peng 2017-06-06 18:55:02 +02:00 committed by gunan
parent 2be64b38e4
commit 6d54f09d97

View File

@ -18,8 +18,20 @@ cc_library(
copts = [
"-w",
],
linkopts = [
"-lpthread",
],
linkopts = select({
":windows": ["-Wl,advapi32.lib"], # InitializeSecurityDescriptor, SetSecurityDescriptorDacl
":windows_msvc": ["-Wl,advapi32.lib"],
"//conditions:default": ["-lpthread"],
}),
visibility = ["//visibility:public"],
)
config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)
config_setting(
name = "windows_msvc",
values = {"cpu": "x64_windows_msvc"},
)