1 --- ipset-4.1.orig/Makefile 2009-11-11 20:22:42.000000000 +0100
2 +++ ipset-4.1/Makefile 2011-01-21 13:30:47.148658311 +0100
3 @@ -64,9 +64,13 @@ ifndef NO_EXTRA_WARN_FLAGS
7 -CFLAGS:=$(ABI_FLAGS) $(COPT_FLAGS) $(WARN_FLAGS) -Ikernel/include -I. # -g -DIPSET_DEBUG
9 +CPPFLAGS+=-Ikernel/include -I.
10 +CFLAGS?=$(ABI_FLAGS) $(COPT_FLAGS) $(WARN_FLAGS)
11 SH_CFLAGS:=$(CFLAGS) -fPIC
12 -LDFLAGS:=$(ABI_FLAGS)
13 +LDFLAGS?=$(ABI_FLAGS)
16 SETTYPES:=ipmap portmap macipmap
17 SETTYPES+=iptree iptreemap
18 SETTYPES+=iphash nethash ipporthash ipportiphash ipportnethash
19 @@ -114,14 +118,14 @@ release: clean
22 ipset.o: ipset.c ipset.h
23 - $(CC) $(CFLAGS) -DIPSET_VERSION=\"$(IPSET_VERSION)\" -DIPSET_LIB_DIR=\"$(IPSET_LIB_DIR)\" -c -o $@ $<
24 + $(CC) $(CPPFLAGS) $(CFLAGS) -DIPSET_VERSION=\"$(IPSET_VERSION)\" -DIPSET_LIB_DIR=\"$(IPSET_LIB_DIR)\" -c -o $@ $<
27 - $(CC) $(CFLAGS) $(LDFLAGS) -rdynamic -o $@ $^ -ldl
28 + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
31 ipset_%.o: ipset_%.c ipset.h
32 - $(CC) $(SH_CFLAGS) -o $@ -c $<
33 + $(CC) $(CPPFLAGS) $(SH_CFLAGS) -o $@ -c $<
35 libipset_%.so: ipset_%.o
36 $(CC) -shared $(LDFLAGS) -o $@ $<