From d2fc893de78b5ddc4010396632aae06e7403b27e Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Mon, 7 Feb 2022 13:53:50 +0100 Subject: [PATCH] CMake properly link to miniupnpc Fix linking and runtime errors such as AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "strupnperror" referenced by "/data/app/... libretroshare.so" --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84af58994..fce0c78df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -380,6 +380,7 @@ endif(RS_DH_PRIME_INIT_CHECK) if(RS_MINIUPNPC) add_compile_definitions(RS_USE_LIBMINIUPNPC) + target_link_libraries(${PROJECT_NAME} PRIVATE miniupnpc) endif(RS_MINIUPNPC) if(RS_LIBUPNP)