Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/kstars/files/patch-kstars_CMakeLists.txt
16461 views
1
Fix linking without INDI
2
3
ld: error: undefined symbol: pthread_create
4
>>> referenced by __threading_support:378 (/usr/include/c++/v1/__threading_support:378)
5
>>> supernovaecomponent.cpp.o:(std::__1::thread::thread<io::detail::AsynchronousReader::init(std::__1::unique_ptr<io::ByteSourceBase,
6
std::__1::default_delete<io::ByteSourceBase>>)::'lambda'(), void>(io::detail::AsynchronousReader::init(std::__1::unique_ptr<io::ByteSourceBase,
7
std::__1::default_delete<io::ByteSourceBase>>)::'lambda'()&&)) in archive lib/libKStarsLib.a
8
9
--- kstars/CMakeLists.txt.orig 2024-10-01 07:34:49 UTC
10
+++ kstars/CMakeLists.txt
11
@@ -1314,6 +1314,7 @@ IF (NOT ANDROID)
12
${ZLIB_LIBRARIES}
13
Eigen3::Eigen
14
GSL::gsl
15
+ Threads::Threads
16
)
17
if (BUILD_QT5)
18
target_link_libraries(KStarsLib
19
@@ -1412,7 +1413,6 @@ if(INDI_FOUND)
20
## Linux + MacOS Lite: Requires INDI Qt5 Client
21
## Android: Requires INDI Qt5 Client built for Android
22
if (NOT ANDROID)
23
- target_link_libraries(KStarsLib ${CMAKE_THREAD_LIBS_INIT})
24
endif ()
25
26
if(WIN32 OR ANDROID)
27
28