and ${PTHREAD_LIBS}, avahi linked its binaries with -lc_r on FreeBSD. This
caused nasty runtime failures on i386, and build failures on alpha, amd64,
and other platforms where libc_r no longer exists.
To fix this, don't go through the song and dance of trying to solve the
-shared/${PTHREAD_LIBS} problem, and just link with ${PTHREAD_LIBS} as
usual. Of course, ports that depend on avahi's libraries will break by
doing this, so add ${PTHREAD_{LIBS,CFLAGS}} to the right pkg-config files
to make sure dependencies will pick them up.
Patch adapted from: Yasuda Keisuke <kysd@po.harenet.ne.jp>
...but with a twist. Avahi is a D-BUS based mDNS solution from
Freedesktop.org.
Avahi provides Service discovery on a local network -- this means that you
can plug your laptop or computer into a network and instantly be able to view
other people who you can chat with, find printers to print to or find files
being shared. This kind of technology is already found in MacOS X
(branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very
convenient.
WWW: http://www.freedesktop.org/Software/Avahi
A lot of the ground work for this port was provided by ahze.