Build/link error with android ndk r19 due to librt
Aperta
- Lingua principale
- C++
- Stelle
- 18.1k
- Fork
- 3.2k
- Merge medio
- 20h 36m
- PR unite (30g)
- 1
Descrizione
We face a build error with the current LTS branch during the linking stage because abseil tries to link librt which doesn't really exist for android.
```
/opt/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: /usr/lib32/librt.so: incompatible target
```
It is fixed by replacing https://github.com/abseil/abseil-cpp/blob/68494aae959dfbbf781cdf03a988d2f5fc7e4802/absl/base/CMakeLists.txt#L17 by
```
if(NOT ANDROID)
find_library(LIBRT rt)
endif(NOT ANDROID)
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.