30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.7 2006/02/04 21:02:31 markd Exp $
|
|
|
|
--- mDNSPosix/Makefile.orig 2006-01-06 14:06:17.000000000 +1300
|
|
+++ mDNSPosix/Makefile
|
|
@@ -281,6 +281,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
|
|
@@ -450,7 +451,7 @@ Clients: setup libdns_sd ../Clients/buil
|
|
@echo "Clients done"
|
|
|
|
../Clients/build/dns-sd:
|
|
- @$(MAKE) -C ../Clients
|
|
+ @$(MAKE) -C ../Clients SYSTEMLIBS="$(SYSTEMLIBS)"
|
|
|
|
# nss_mdns target builds the Name Service Switch module
|
|
nss_mdns: setup $(BUILDDIR)/$(NSSLIBFILE)
|
|
@@ -643,7 +644,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}
|
|
|
|
#############################################################################
|
|
|