Quo vadis, -CURRENT? (recent changes to cc & compatibility)
Daniel Eischen
eischen at vigrid.com
Wed Sep 10 13:41:09 PDT 2003
On Wed, 10 Sep 2003, Michael Edenfield wrote:
> * David O'Brien <obrien at FreeBSD.org> [030910 15:33]:
> > On Wed, Sep 10, 2003 at 12:41:41PM -0400, Michael Edenfield wrote:
> > > gnome2 depends on gnomemedia2.
> > > gnomemedia2 depends on gstreamer-plugins.
> > > gstreamer-plugins fails because ARTSD_FLAGS in several dozen Makefiles
> > > includes -pthread.
> >
> > This is being worked on from the compiler stand point.
>
> Which is the main reason I didn't do a pr on it. But from reading other
> parts of the thread, it seems that ports should not be using -pthread
> anyway... would it be worthwhile to submit patches to remove -pthread
> (and, for that matter, -lpthread and other variants) in favor of
> ${PTHREAD_LIBS} regardless of wether `cc -pthread` is an error or a
> no-op, or some magical auto-thread-library-selector?
Yes, ${PTHREAD_LIBS} should be used, except perhaps for
ports that are libraries. Under the proposed scheme,
libraries could be weakly linked to a stub pthread
library (or even pthread stubs in libc I suppose). Then
when an application (strongly linked to _a_ threads
library) loads/references the library, that library
uses the same threads library that the application is
linked to.
But threaded executables still need to be linked to
some threads library, and that should be selectable
via PTHREAD_LIBS.
--
Dan Eischen
More information about the freebsd-current
mailing list