Commit f3fe75ba authored by Feng Xiao's avatar Feng Xiao

Merge pull request #1386 from andrewharp/patch-2

Do not link in pthread library for Android builds.
parents a771c9e1 3b4e7dcf
...@@ -15,8 +15,18 @@ COPTS = [ ...@@ -15,8 +15,18 @@ COPTS = [
"-Wno-error=unused-function", "-Wno-error=unused-function",
] ]
# Bazel should provide portable link_opts for pthread. config_setting(
LINK_OPTS = ["-lpthread"] name = "android",
values = {
"crosstool_top": "//external:android/crosstool",
},
)
# Android builds do not need to link in a separate pthread library.
LINK_OPTS = select({
":android": [],
"//conditions:default": ["-lpthread"],
})
load( load(
"protobuf", "protobuf",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment