mirror of https://github.com/bjornbytes/lovr.git
Fix linux build
On (arch) linux, compilation would not complete due to the following error: ```/usr/bin/ld: CMakeFiles/lovr.dir/src/lib/tinycthread/tinycthread.c.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5' /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status``` Adding `-lpthread` to the linker flags fixes this
This commit is contained in:
parent
66836b4d3a
commit
9f2a9c67a1
|
@ -161,7 +161,7 @@ elseif(WIN32)
|
||||||
else()
|
else()
|
||||||
pkg_search_module(ODE REQUIRED ode)
|
pkg_search_module(ODE REQUIRED ode)
|
||||||
include_directories(${ODE_INCLUDE_DIRS})
|
include_directories(${ODE_INCLUDE_DIRS})
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lstdc++")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lstdc++ -lpthread")
|
||||||
set(LOVR_ODE ode)
|
set(LOVR_ODE ode)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue