Path: blob/main/astro/kstars/files/patch-kstars_CMakeLists.txt
16461 views
Fix linking without INDI12ld: error: undefined symbol: pthread_create3>>> referenced by __threading_support:378 (/usr/include/c++/v1/__threading_support:378)4>>> supernovaecomponent.cpp.o:(std::__1::thread::thread<io::detail::AsynchronousReader::init(std::__1::unique_ptr<io::ByteSourceBase,5std::__1::default_delete<io::ByteSourceBase>>)::'lambda'(), void>(io::detail::AsynchronousReader::init(std::__1::unique_ptr<io::ByteSourceBase,6std::__1::default_delete<io::ByteSourceBase>>)::'lambda'()&&)) in archive lib/libKStarsLib.a78--- kstars/CMakeLists.txt.orig 2024-10-01 07:34:49 UTC9+++ kstars/CMakeLists.txt10@@ -1314,6 +1314,7 @@ IF (NOT ANDROID)11${ZLIB_LIBRARIES}12Eigen3::Eigen13GSL::gsl14+ Threads::Threads15)16if (BUILD_QT5)17target_link_libraries(KStarsLib18@@ -1412,7 +1413,6 @@ if(INDI_FOUND)19## Linux + MacOS Lite: Requires INDI Qt5 Client20## Android: Requires INDI Qt5 Client built for Android21if (NOT ANDROID)22- target_link_libraries(KStarsLib ${CMAKE_THREAD_LIBS_INIT})23endif ()2425if(WIN32 OR ANDROID)262728