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:
Meep-Eep
2008-08-21 20:03:54 +00:00
parent f726de4474
commit aa02a78da5
11 changed files with 846 additions and 9 deletions
+21
View File
@@ -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