summaryrefslogtreecommitdiff
blob: a81a255997c41738abeb625509ff552353e5413b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -16,13 +16,14 @@
 
 APXS=@APXS@
 APACHECTL=@APACHECTL@
-LIBS=-Wl,"@LIBS@" @AVAHI_LIBS@
+LIBS="@LIBS@" @AVAHI_LIBS@
 CFLAGS=-Wc,"@CFLAGS@" @AVAHI_CFLAGS@
+APXS_LDFLAGS=`for ldflag in $(LDFLAGS); do echo -Wl,$$ldflag; done`
 
 all: mod_dnssd.la
 
 mod_dnssd.la: @srcdir@/mod_dnssd.c
-	$(APXS) -c $(CFLAGS) $(LIBS) @srcdir@/mod_dnssd.c
+	$(APXS) -c $(CFLAGS) $(APXS_LDFLAGS) @srcdir@/mod_dnssd.c $(LIBS)
 
 install: all
 	$(APXS) -i -a mod_dnssd.la