aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMacdu <[email protected]>2023-01-27 12:17:55 +0100
committerPaul Adenot <[email protected]>2023-01-27 13:07:18 +0100
commit88585b669b51836c3817b80c113ac80c3b3d8b2a (patch)
tree4c29edf98df1fea72df80f1b3f95671e1dc636a2
parent67af793663c7f18b37efd7015cafae5a35902de3 (diff)
downloadcubeb-88585b669b51836c3817b80c113ac80c3b3d8b2a.tar.gz
cubeb-88585b669b51836c3817b80c113ac80c3b3d8b2a.zip
cmake: Make undefined symbols weak on Android
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b80c73..0aa6841 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -169,6 +169,10 @@ if(LAZY_LOAD_LIBS)
if(USE_PULSE OR USE_ALSA OR USE_JACK OR USE_SNDIO OR USE_AAUDIO)
target_link_libraries(cubeb PRIVATE ${CMAKE_DL_LIBS})
+
+ if(ANDROID)
+ target_compile_definitions(cubeb PRIVATE __ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__)
+ endif()
endif()
else()