diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2010-03-16 13:10:37 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2010-03-16 13:10:37 +0000 |
commit | 078161d5b9d2d0818ff75e9ea8bd04f99727ed5f (patch) | |
tree | 4028aabb347cded59549340ec38e0bce46deb763 /Makefile | |
parent | 2320f8bcf06d402501f2a85e42623469715ae579 (diff) | |
download | ebtables-078161d5b9d2d0818ff75e9ea8bd04f99727ed5f.tar.gz ebtables-078161d5b9d2d0818ff75e9ea8bd04f99727ed5f.tar.bz2 ebtables-078161d5b9d2d0818ff75e9ea8bd04f99727ed5f.zip |
add LDFLAGS (Peter Volkov)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -18,7 +18,6 @@ DESTDIR:= CFLAGS:=-Wall -Wunused CFLAGS_SH_LIB:=-fPIC CC:=gcc -LD:=ld ifeq ($(shell uname -m),sparc64) CFLAGS+=-DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32 @@ -85,10 +84,10 @@ ebtables-standalone.o: ebtables-standalone.c include/ebtables_u.h .PHONY: libebtc libebtc: $(OBJECTS2) - $(CC) -shared -Wl,-soname,libebtc.so -o libebtc.so -lc $(OBJECTS2) + $(CC) -shared $(LDFLAGS) -Wl,-soname,libebtc.so -o libebtc.so -lc $(OBJECTS2) ebtables: $(OBJECTS) ebtables-standalone.o libebtc - $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ + $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(LDFLAGS) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ -Wl,-rpath,$(LIBDIR) ebtablesu: ebtablesu.c @@ -105,7 +104,7 @@ ebtables-restore.o: ebtables-restore.c include/ebtables_u.h $(CC) $(CFLAGS) $(PROGSPECS) -c $< -o $@ -I$(KERNEL_INCLUDES) ebtables-restore: $(OBJECTS) ebtables-restore.o libebtc - $(CC) $(CFLAGS) -o $@ ebtables-restore.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ ebtables-restore.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ -Wl,-rpath,$(LIBDIR) .PHONY: daemon |