FreeBSD Pthread fixes

Lauri Watts lauri at kde.org
Mon Sep 22 19:52:10 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

This is what Will and I have come up with as working on pretty much any
variation of FreeBSD we have access to.  Can you please take a look for
sanity and to most importantly make sure we didn't tramp on any !FreeBSD
configure :)

http://people.fruitsalad.org/will/patches/acinclude.m4.in.diff
and also
http://people.fruitsalad.org/will/patches/patch-ltmain.sh

To clarify what's going on:
* -pthread is removed from 5.x and will either fail (current situation) or be
a noop
* -pthread will still work on 4.x (which is the stable branch)
* -lc_r or -lkse are what is needed for 5.x, and the user has the option to
choose which threading library they use.  $PTHREAD_LIBS will be set in the
make environment by the OS when a choice is made.  To really
mess it up, in the future, libkse may be renamed libpthread, however, the
default is -lc_r (if there's a logic to that, it escapes me, however, that's
the way it is)
* $PTHREAD_LIBS is set to -pthread on very new 4.x, but only by the ports
system, not in the OS, so we still need to test for it, to support older 4.x
releases and for people building directly (ie, out of CVS or apps from appsy)
* I don't know what was the thinking for nooping -lc_r in ltmain.sh but that
needs to go in any case :)

Regards,
- --
Lauri Watts
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/b0Te/gUyA7PWnacRAocpAJ4rWBre/1hvn91VLJMSZWYALFafzQCfV8+D
k67Yp7yRP8k4Q3OFN3ZeUQc=
=MwKq
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list