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 | 17c60f5edd85c1a74c8832c79535e2c25bcf627c (patch) | |
tree | 82189e399b38c1373f3d680189af071a391027f9 /Makefile | |
parent | 92306860bfc6c187cebeb0a527e94750d61ec3d0 (diff) |
shared libraries need fPIC
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |