freebsd-ports/net/avahi/files/patch-avahi-compat-libdns_sd.pc.in
Joe Marcus Clarke 7da8cdf04a In trying to solve a problem with inconsistencies when linking with -shared
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>
2006-01-29 18:47:31 +00:00

10 lines
429 B
PkgConfig

--- avahi-compat-libdns_sd.pc.in.orig Sun Jan 29 13:33:21 2006
+++ avahi-compat-libdns_sd.pc.in Sun Jan 29 13:33:40 2006
@@ -6,5 +6,5 @@
Name: avahi-compat-libdns_sd
Description: Avahi Multicast DNS Responder (libdns_sd Compatibility)
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -ldns_sd
-Cflags: -D_REENTRANT -I${includedir}
+Libs: -L${libdir} -ldns_sd @PTHREAD_LIBS@
+Cflags: -D_REENTRANT @PTHREAD_CFLAGS@ -I${includedir}