$NetBSD: patch-aa,v 1.8 2006/03/03 22:30:56 wiz Exp $ --- mDNSPosix/Makefile.orig 2006-02-20 22:40:36.000000000 +0100 +++ mDNSPosix/Makefile @@ -275,6 +275,7 @@ CFLAGS_OS = -DNOT_HAVE_DAEMON -DNOT_HAVE CC = gcc LD = gcc -shared LIBFLAGS = -lsocket -lnsl -lresolv +SYSTEMLIBS = -lsocket -lnsl JAVACFLAGS_OS += -I$(JDK)/include/solaris ifneq ($(DEBUG),1) STRIP = strip @@ -617,7 +618,7 @@ $(BUILDDIR)/mDNSNetMonitor: $(S $(CC) $+ -o $@ $(LIBFLAGS) $(BUILDDIR)/dnsextd: $(SPECIALOBJ) $(OBJDIR)/dnsextd.c.threadsafe.o - $(CC) $+ -o $@ $(LIBFLAGS) -lpthread + $(CC) $+ -o $@ $(LIBFLAGS) ${COMPILER_RPATH_FLAG}${PTHREADBASE}/lib ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} ${EXTRA_LIBS} #############################################################################