mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Added changes already made to the makefile package in order to best support
threads under FreeBSD. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5582 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
39f21cb1f0
commit
d70baaceb8
3 changed files with 234 additions and 171 deletions
|
@ -1,3 +1,10 @@
|
|||
1999-12-19 David Lazaro <khelekir@encomix.es>
|
||||
|
||||
* configure.in (objc_thread_lib): Added support for FreeBSD native
|
||||
POSIX threads (from the reentrant C library, libc_r). Made this the
|
||||
first option to test as this is the best working one.
|
||||
* configure: New build to support the above mentioned.
|
||||
|
||||
Fri Dec 17 17:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
Fix error in last change.
|
||||
|
|
16
configure.in
16
configure.in
|
@ -202,9 +202,19 @@ if test $host_os = linux-gnu; then
|
|||
objc_threaded="", objc_threaded="-lpcthread")
|
||||
fi
|
||||
elif test "`echo $host_os|sed 's/[[0-9]].*//'|sed s/elf//`" = freebsd; then
|
||||
LIBS="-lobjc -lpthread"
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-lpthread",
|
||||
objc_threaded="", objc_threaded="-lpthread")
|
||||
LIBS="-pthread -lobjc"
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-pthread",
|
||||
objc_threaded="", objc_threaded="-pthread")
|
||||
if test x"$objc_threaded" = x""; then
|
||||
LIBS="-lpthread -lobjc"
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-lpthread",
|
||||
objc_threaded="", objc_threaded="-lpthread")
|
||||
fi
|
||||
if test x"$objc_threaded" = x""; then
|
||||
LIBS="-lobjc -lpcthread"
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-lpcthread",
|
||||
objc_threaded="", objc_threaded="-lpcthread")
|
||||
fi
|
||||
else
|
||||
LIBS="-lobjc $LIBS $extra_LIBS"
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-lthread",
|
||||
|
|
Loading…
Reference in a new issue