summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRusty Russell <rusty@linuxcare.com.au>2000-04-27 10:16:47 +0000
committerRusty Russell <rusty@rustcorp.com.au>2000-04-27 10:16:47 +0000
commit09b9a413af814362152a83560917ba4e7b5ee171 (patch)
treee4107faee8dcb603dbbceb7106a7e22e2c05d6fb /Makefile
parent24d69421f9c5674e8650084a15bb4b3e8d5dec0b (diff)
Dependencies for libiptc.a fixed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 615fb593..640e5b8d 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,12 @@ DEPFILES := $(SHARED_LIBS:%.so=%.d)
EXTRAS+=iptables iptables.o #iptables-save iptables-restore
EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/iptables $(DESTDIR)$(MANDIR)/man8/iptables.8 #$(DESTDIR)$(BINDIR)/iptables-save $(DESTDIR)$(BINDIR)/iptables-restore
+# Sparc64 hack
+ifeq ($(shell uname -m),sparc64)
+# The kernel is 64-bit, even though userspace is 32.
+CFLAGS+=-DIPT_MIN_MATCH_ALIGN=8 -DIPT_MIN_ENTRY_ALIGN=8
+endif
+
ifndef IPT_LIBDIR
IPT_LIBDIR:=$(LIBDIR)/iptables
endif