Merge pull request #1386 from andrewharp/patch-2
Do not link in pthread library for Android builds.
This commit is contained in:
commit
f3fe75bae5
14
BUILD
14
BUILD
@ -15,8 +15,18 @@ COPTS = [
|
||||
"-Wno-error=unused-function",
|
||||
]
|
||||
|
||||
# Bazel should provide portable link_opts for pthread.
|
||||
LINK_OPTS = ["-lpthread"]
|
||||
config_setting(
|
||||
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(
|
||||
"protobuf",
|
||||
|
Loading…
Reference in New Issue
Block a user