Files
gentoo/dev-db/sqliteman/files/sqliteman-1.2.2-lpthread.patch
Michael Palimaka 641226130f dev-db/sqliteman: add patch to solve build failure on uclibc caused by underlinking
Gentoo-bug: 587076

Package-Manager: portage-2.3.0
2016-06-30 04:27:06 +10:00

20 lines
486 B
Diff

Resolves underlinking issue causing build failure on uclibc.
Author: René Rhéaume <rene.rheaume@gmail.com>
Gentoo-bug: 587076
--- a/sqliteman/CMakeLists.txt
+++ b/sqliteman/CMakeLists.txt
@@ -183,7 +183,10 @@ IF (WIN32)
# don't use console subsystem
IF (MINGW)
TARGET_LINK_LIBRARIES(${EXE_NAME} "-mwindows")
- ENDIF (MINGW)
+ ENDIF (MINGW)
+ELSE (WIN32)
+ FIND_PACKAGE(Threads)
+ TARGET_LINK_LIBRARIES(${EXE_NAME} ${CMAKE_THREAD_LIBS_INIT})
ENDIF (WIN32)