From: /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org Date: Fri, 10 Dec 2004 10:25:38 +0000 (+0000) Subject: Makefile corrected (fPIC) X-Git-Tag: v2.4.6~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0e6c3761fc58dee28a736baac0e4a20af0a2b36;p=ipset Makefile corrected (fPIC) --- diff --git a/Makefile b/Makefile index bba6930..3a30eeb 100644 --- a/Makefile +++ b/Makefile @@ -21,8 +21,8 @@ IPSET_LIB_DIR:=$(DESTDIR)$(LIBDIR)/ipset RELEASE_DIR:=/tmp COPT_FLAGS:=-O2 -CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -I. -g -DIPSET_DEBUG #-pg # -DIPTC_DEBUG - +CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -I. #-g -DIPSET_DEBUG #-pg # -DIPTC_DEBUG +SH_CFLAGS:=$(CFLAGS) -fPIC SETTYPES:=ipmap portmap macipmap iphash PROGRAMS=ipset @@ -46,7 +46,7 @@ ipset: ipset.o #Pooltypes ipset_%.o: ipset_%.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(SH_CFLAGS) -o $@ -c $< libipset_%.so: ipset_%.o $(LD) -shared -o $@ $<