Pthread support from Gwl.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3041 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -222,6 +222,27 @@ LIB_zlib_DETECT="try_pkgconfig_lib zlib zlib"
|
||||
LIB_zlib_DEPEND_DETECT_BIN="pkgconfig"
|
||||
|
||||
|
||||
### pthread ###
|
||||
LIB_pthread_NAME="pthread"
|
||||
case "$HOST_SYSTEM" in
|
||||
Linux)
|
||||
LIB_pthread_CFLAGS=""
|
||||
LIB_pthread_LDFLAGS=""
|
||||
LIB_pthread_VERSION=""
|
||||
;;
|
||||
FreeBSD|OpenBSD)
|
||||
LIB_pthread_CFLAGS="$(pthread-config --cflags)"
|
||||
LIB_pthread_LDFLAGS="$(pthread-config --ldflags)"
|
||||
LIB_pthread_VERSION="$(pthread-config --version)"
|
||||
;;
|
||||
*)
|
||||
LIB_pthread_CFLAGS=""
|
||||
LIB_pthread_LDFLAGS="-lpthread"
|
||||
LIB_pthread_VERSION=""
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# Additional platform-specific libraries for networking.
|
||||
LIB_netlibs_NAME="Platform-specific network libraries"
|
||||
case "$HOST_SYSTEM" in
|
||||
|
||||
Reference in New Issue
Block a user