Fixes -lpthread problem when building with android_arm64 config (#20337)

When using `--platforms=//:android_arm64` on command line, the build fails to match any android condition.

```
platform(
    name = "android_arm64",
    constraint_values = [
        "@platforms//os:android",
        "@platforms//cpu:arm64",
    ],
)
```

Closes #20337

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/20337 from stakira:patch-1 623053cb19
PiperOrigin-RevId: 726741995
This commit is contained in:
StAkira 2025-02-13 20:13:52 -08:00 committed by Copybara-Service
parent bdf334cbb4
commit 4f5968a208

View file

@ -23,6 +23,7 @@ COPTS = select({
# Android and MSVC builds do not need to link in a separate pthread library.
LINK_OPTS = select({
"@platforms//os:android": [],
"//build_defs:config_android": [],
"//build_defs:config_android-legacy-default-crosstool": [],
"//build_defs:config_android-stlport": [],