Merge pull request #1386 from andrewharp/patch-2

Do not link in pthread library for Android builds.
pull/1391/head
Feng Xiao 9 years ago
commit f3fe75bae5
  1. 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…
Cancel
Save