summaryrefslogtreecommitdiff
blob: 9f8bcaf9e22fc88954f1e5ade732ddd264cd88b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
=== modified file 'Makefile'
--- Makefile	2009-01-30 16:53:06 +0000
+++ Makefile	2009-01-30 20:13:44 +0000
@@ -105,14 +105,14 @@
 	$(CC) $(CFLAGS) -DIPSET_VERSION=\"$(IPSET_VERSION)\" -DIPSET_LIB_DIR=\"$(IPSET_LIB_DIR)\" -c -o $@ $<
 
 ipset: ipset.o
-	$(CC) $(CFLAGS) -rdynamic -o $@ $^ -ldl
+	$(CC) $(CFLAGS) $(LDFLAGS) -rdynamic -o $@ $^ -ldl
 
 #Pooltypes
 ipset_%.o: ipset_%.c ipset.h
 	$(CC) $(SH_CFLAGS) -o $@ -c $<
 
 libipset_%.so: ipset_%.o
-	$(CC) -shared -o $@ $<
+	$(CC) -shared $(LDFLAGS) -o $@ $<
 
 $(DESTDIR)$(LIBDIR)/ipset/libipset_%.so: libipset_%.so
 	@[ -d $(DESTDIR)$(LIBDIR)/ipset ] || mkdir -p $(DESTDIR)$(LIBDIR)/ipset