Subject: NetBSD 1.6 and -pthread
To: None <tech-pkg@NetBSD.org>
From: Krister Walfridsson <firstname.lastname@example.org>
Date: 12/12/2004 18:09:40
A number of packages adds -pthread to the flags passed to gcc. The
gcc in NetBSD 1.6 does not handle -pthread, but that has not been
much of a problem since it ignores this flag, and -lpthread are
often present in addition to the -pthread.
Recent changes to pkgsrc infrastructure does however seem to
remove -lpthread when -pthread is present, with the result that
build of those packages (e.g. sysutils/bacula and www/privoxy)
What is the correct way of fixing those packages? Patch away the
-pthread and set some magic pkgsrc option? Or are there other
mechanisms? Or is this a bug in pkgsrc?