mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-21 09:11:49 +00:00
Use -lpthread on OpenBSD
This commit is contained in:
@@ -905,7 +905,7 @@ macro(CheckPTHREAD)
|
|||||||
set(PTHREAD_LDFLAGS "-lpthread")
|
set(PTHREAD_LDFLAGS "-lpthread")
|
||||||
elseif(OPENBSD)
|
elseif(OPENBSD)
|
||||||
set(PTHREAD_CFLAGS "-D_REENTRANT")
|
set(PTHREAD_CFLAGS "-D_REENTRANT")
|
||||||
set(PTHREAD_LDFLAGS "-pthread")
|
set(PTHREAD_LDFLAGS "-lpthread")
|
||||||
elseif(SOLARIS)
|
elseif(SOLARIS)
|
||||||
set(PTHREAD_CFLAGS "-D_REENTRANT")
|
set(PTHREAD_CFLAGS "-D_REENTRANT")
|
||||||
set(PTHREAD_LDFLAGS "-pthread -lposix4")
|
set(PTHREAD_LDFLAGS "-pthread -lposix4")
|
||||||
|
2
configure
vendored
2
configure
vendored
@@ -26778,7 +26778,7 @@ fi
|
|||||||
;;
|
;;
|
||||||
*-*-openbsd*)
|
*-*-openbsd*)
|
||||||
pthread_cflags="-D_REENTRANT"
|
pthread_cflags="-D_REENTRANT"
|
||||||
pthread_lib="-pthread"
|
pthread_lib="-lpthread"
|
||||||
;;
|
;;
|
||||||
*-*-solaris2.9)
|
*-*-solaris2.9)
|
||||||
# From Solaris 9+, posix4's preferred name is rt.
|
# From Solaris 9+, posix4's preferred name is rt.
|
||||||
|
@@ -3063,7 +3063,7 @@ dnl This is used on Linux for glibc binary compatibility (Doh!)
|
|||||||
;;
|
;;
|
||||||
*-*-openbsd*)
|
*-*-openbsd*)
|
||||||
pthread_cflags="-D_REENTRANT"
|
pthread_cflags="-D_REENTRANT"
|
||||||
pthread_lib="-pthread"
|
pthread_lib="-lpthread"
|
||||||
;;
|
;;
|
||||||
*-*-solaris2.9)
|
*-*-solaris2.9)
|
||||||
# From Solaris 9+, posix4's preferred name is rt.
|
# From Solaris 9+, posix4's preferred name is rt.
|
||||||
|
Reference in New Issue
Block a user