summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorMichael Banck <mbanck@debian.org>2007-07-31 13:54:19 +0000
committerMichael Banck <mbanck@debian.org>2007-07-31 13:54:19 +0000
commit6f51486c0f198afc01393602aa84b8d8c214c4f2 (patch)
tree9142a14b1814333772fc2b1af9086268f4c82580 /debian/patches
parent0726bbc7471015fa8733fb533752f4a1715cbad1 (diff)
* debian/patches/pfinet_-fno-strict-aliasing.patch: New patch, adding
-fno-strict-aliasing to pfinet's CFLAGS to fix compilation with gcc-4.2, taken from CVS.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/pfinet_-fno-strict-aliasing.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/pfinet_-fno-strict-aliasing.patch b/debian/patches/pfinet_-fno-strict-aliasing.patch
new file mode 100644
index 00000000..2a536526
--- /dev/null
+++ b/debian/patches/pfinet_-fno-strict-aliasing.patch
@@ -0,0 +1,17 @@
+2007-07-27 Thomas Schwinge <tschwinge@gnu.org>
+
+ * Makefile (CFLAGS): Add ``-fno-strict-aliasing''.
+
+--- pfinet/Makefile 2002/09/17 20:42:06 1.35
++++ pfinet/Makefile 2007/07/27 12:39:15 1.36
+@@ -95,6 +95,10 @@
+ -I$(srcdir)/glue-include \
+ -I$(srcdir)/linux-src/include
+
++# Don't ask... We use Linux code. The problem was first noticed when
++# compiling `pfinet' with GCC 4.2.
++CFLAGS += -fno-strict-aliasing
++
+ asm/checksum.h: ../config.status
+ mkdir -p $(@D)
+ echo > $@.new \