Use -lpthread on OpenBSD

This commit is contained in:
Brad Smith
2022-10-21 04:49:15 -04:00
committed by Sam Lantinga
parent 5ed091c12d
commit f37db957f8
3 changed files with 3 additions and 3 deletions

View File

@@ -905,7 +905,7 @@ macro(CheckPTHREAD)
set(PTHREAD_LDFLAGS "-lpthread")
elseif(OPENBSD)
set(PTHREAD_CFLAGS "-D_REENTRANT")
set(PTHREAD_LDFLAGS "-pthread")
set(PTHREAD_LDFLAGS "-lpthread")
elseif(SOLARIS)
set(PTHREAD_CFLAGS "-D_REENTRANT")
set(PTHREAD_LDFLAGS "-pthread -lposix4")