diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2006-12-14 18:55:44 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2006-12-14 18:55:44 +0000 |
commit | b2c72b5f2f6a8510629d329540143d1aa6aaa85f (patch) | |
tree | 20f365ee09e1d3a1084d3ba959c67401e49d64db /userspace | |
parent | 3aa1626560d0250922f944cdef40032371cb935a (diff) |
shared libraries need fPIC
Diffstat (limited to 'userspace')
-rw-r--r-- | userspace/ebtables2/Makefile | 9 | ||||
-rw-r--r-- | userspace/ebtables2/extensions/Makefile | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/userspace/ebtables2/Makefile b/userspace/ebtables2/Makefile index 6ddfdc9..a05ce17 100644 --- a/userspace/ebtables2/Makefile +++ b/userspace/ebtables2/Makefile @@ -23,6 +23,7 @@ override SYSCONFIGDIR:=$(DESTDIR)$(SYSCONFIGDIR) CFLAGS:=-Wall -Wunused +CFLAGS_SH_LIB:=-fPIC CC:=gcc LD:=ld @@ -72,16 +73,16 @@ PROGSPECSD:=-DPROGVERSION=\"$(PROGVERSION)\" \ all: ebtables ebtables-restore communication.o: communication.c include/ebtables_u.h - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) libebtc.o: libebtc.c include/ebtables_u.h - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) useful_functions.o: useful_functions.c include/ebtables_u.h - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) getethertype.o: getethertype.c include/ethernetdb.h - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -Iinclude/ + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c -o $@ $< -Iinclude/ ebtables.o: ebtables.c include/ebtables_u.h $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) diff --git a/userspace/ebtables2/extensions/Makefile b/userspace/ebtables2/extensions/Makefile index 2976d62..731f5fa 100644 --- a/userspace/ebtables2/extensions/Makefile +++ b/userspace/ebtables2/extensions/Makefile @@ -23,8 +23,8 @@ extensions/libebtable_%.so: extensions/ebtable_%.so mv $< $@ extensions/ebt_%.o: extensions/ebt_%.c include/ebtables_u.h - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) extensions/ebtable_%.o: extensions/ebtable_%.c - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c -o $@ $< -I$(KERNEL_INCLUDES) |