]> granicus.if.org Git - ipset/commitdiff
Makefile corrected (fPIC)
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org>
Fri, 10 Dec 2004 10:25:38 +0000 (10:25 +0000)
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org>
Fri, 10 Dec 2004 10:25:38 +0000 (10:25 +0000)
Makefile

index bba69308bc98bc084a94447a97a8453b26ddf102..3a30eeb4b34e1eab9a7dd69b3ba6371300b33e7d 100644 (file)
--- 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 $@ $<